2. Some interesting git commands
• git add --patch
• Use this to add hunks of code one by one
• You can edit hunks, too!
• git commit --amend -C HEAD
• Use this to update the previous commit with changes already staged for
commit
• It keeps the same commit message, so it’s useful for fixing typos before
pushing