Local settings
pulpfixer.json is committed, so it holds what every checkout of the repo shares. Some settings differ per machine: which backup git remotes pf gp pushes to, for example. Those live in the repo’s .pf/ folder, which is never committed.
my-repo/
pulpfixer.json committed: shared
.pf/
config.json this machine only
.gitignore contains "*"Staying out of git
pf repo(pf rp) adds.pf/to the repo’s.gitignore(creating the file if needed, never twice).pf rp --no-localskips it.- The first time pf writes
.pf/, it also creates.pf/.gitignorewith*, so the folder stays out of git even in a repo wherepf rpwas never run. - pf never touches a
.gitignorein a folder that has no.gitof its own.
config.json
{
"git": {
"push": { "primary": "origin", "secondary": ["backup"] }
}
}| Key | Meaning |
|---|---|
git.push.primary | The remote pf git push (pf gp) pushes to first. Unset: the branch’s upstream remote, else origin. |
git.push.secondary | The backup remotes: they get the same push after the primary. |
Only remote names are stored. Their URLs stay in .git/config, which is per checkout already. Use pf git to edit the file (see pf git); an invalid config.json reads as empty and is never overwritten.
Last updated on