Skip to main content Link Search Menu Expand Document (external link)

Docs

https://git-scm.com/docs book covers more topic

ATOMIC COMMITS

Each commit focused on a single thing (feature) Easy to rollback Easy to review

Commit messages

  • Git recommends present tense + imperative
  • Like you are giving orders to the machine
  • make blabla, merge tata, etc

Amending commits

  • Useful for fixing the last commit
  • git commit --amend
  • Changes to ammend have to be staged

gitignore

allow to tell git to ignore certain files Credentials, secret, aws normally in the root of the repo, not necesarily gitignore.io