Git ignore local changes to portions of tracked files

后端 未结 4 1151
死守一世寂寞
死守一世寂寞 2020-12-04 09:07

Specifically, I maintain a git repository of my dotfiles. I recently started working on a new machine and cloned my repository on the same.

Now, I wish to make some

4条回答
  •  青春惊慌失措
    2020-12-04 09:46

    I don't believe there's a specific command that will 'untrack' certain changes to a file. However, there's no reason that you couldn't create a local branch into which you pull changes from your remotes, but never send any changes back.

提交回复
热议问题