We're migrating from Perforce to GIT. In perforce, there were some files that I'd want in the repository, but they shouldn't be checked in by individual developers regularly. Things like eclipse project files. Each dev might get the initial .project file, but then tweak it slightly for their environment.
With P4, I could take those files, put them in a separate changelist and forget about them. Syncing wouldn't overwrite them and they wouldn't get committed when I commited my default changelist.
Is there a way to do something similar with GIT?
I'd like to still be able to "git commit -a"
git
, you generally do not just commit everything, you review what has changed withgit status
andgit diff
, you decide what to add (or to.gitignore
), and then commit precisely what you need. This workflow ensures that your commits do not contain any cruft like accidentally checked in object or temporary files, etc. See, creating agit
history is telling a story, and the better you tell it, the more useful it will be. Better not smudge it with mindless commit-my-pile-of-garbage. – cmaster - reinstate monica