Skip to Content
ConceptsLocal settings

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-local skips it.
  • The first time pf writes .pf/, it also creates .pf/.gitignore with *, so the folder stays out of git even in a repo where pf rp was never run.
  • pf never touches a .gitignore in a folder that has no .git of its own.

config.json

{ "git": { "push": { "primary": "origin", "secondary": ["backup"] } } }
KeyMeaning
git.push.primaryThe remote pf git push (pf gp) pushes to first. Unset: the branch’s upstream remote, else origin.
git.push.secondaryThe 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