On Thu, Aug 29, 2019 at 7:34 AM Matthew McClure <matt@xxxxxxxxxxxxxxxxxxx> wrote: > > Hi, > > I'm looking for a way to track history of personal changes in a repository. I'd > like to protect against accidentally pushing the changes to a remote branch. I > imagine this working a little like `git ignore`, and a little like a separate > branch. It might be like a personal sub-branch that is ignored by `git > push`. Or it might be like a history of the work tree that runs parallel to the > reflog and to the history of any given branch. > > Does something like this exist in Git or a complementary tool? > > I found `git update-index --skip-worktree`. I imagine it might be relevant in > some kind of workflow where I can maintain a personal-worktree branch. > > Does any of you have a personal workflow that addresses similar concerns? Perhaps put all the changes in a specific branch and run: git config branch.${personalBranchName}.pushRemote Do.Not.Push.Changes.From.This.Branch ? (And make sure that push.default is not set to 'matching'.)