git - Is it possible to exclude file from `git push`, but keep them in the local repository?
- 阅读更多 关于 git - Is it possible to exclude file from `git push`, but keep them in the local repository?
问题 In my home directory I have files in a local git repository, because I want track them all under version control. Most of these files I want to push to a remote repository, but a few I want to keep in my local repository only (they contain mildly sensitive information). How can I achieve this with git? Can I configure a " .gitignore-for-push " file? I cannot use the local .gitignore file, because it would exclude these files completely from being tracked. ps: I am aware of question Is there