My GIT habits :
-
On Windows, through
GIT bash -
No UI, except occasional
gitk --all&to visually check branches and commits -
Use
git fetchthengit merge --ff-only origin/master- I don't like
git pullauto-merging feature that messes up the history
- I don't like
-
Use
git add -pto :- make a quick review of changes before commit
- try to split changes, and add those which are related in a commit
-
When initializing a file, from a generated or copied content :
- First commit the unmodified version
- Then commit the changes, can help in the future to spot the differences
-
git commitoften, in a local branch -
git stashwhen needed- often only when conflicts prevents switching branch
-
git tagwhen delivering