- You notice a bug, how do you know you introduced it with your pending changes?
 
  - git checkout master
 
  - reload app, check for bug
 
  - git checkout AMAZ-123-add-settings
 
  - 
    
resume working on your branch
   
  - Critical prod bug appears, you need a hotfix NOW
 
  - git checkout master
 
  - git checkout -b HOT-FIX
 
  - make the fix, merge back and push
 
  - git checkout AMAZ-123-add-settings
 
  - 
    
resume working on your branch
   
  - You need to tie your commits to issues in your tracker
 
  - Git has scriptable hooks you can customize
 
  - Want an equivalent to TFS “Enforce check-in policy?”
 
  - Add a ‘commit-msg’ hook that requires your message to contain ‘AMAZ-‘
 
  - 
    
This links the commit to the work item in Jira
   
  - Add hooks that automatically run your unit tests when you push and reject 
 if the tests fails
 
  - Add script to send chat message whenever someone pushes new changes
 
  - Add hook to run your code through a lint-checker/formatter before making a commit