git best practice

less than 1 minute read

  1. configure user.name and user.email properly
  2. understand and use common git cli commands
  3. make good commit message
  4. use .gitignore filter files shouldn’t be committed
  5. avoid committing large binary files
  6. understand rebase and merge
  7. try to rebase when merging
  8. rebase from your target branch often
  9. understand and use reset
  10. avoid creating short one word branch names like: fix, test, etc.
  11. clean up branches, delete unused obsolete branches

Tags:

Categories:

Updated: