Skip to content

Instantly share code, notes, and snippets.

@karan-ta
Created October 17, 2016 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karan-ta/2ced8e8b34a441846c031a13e5382f22 to your computer and use it in GitHub Desktop.
Save karan-ta/2ced8e8b34a441846c031a13e5382f22 to your computer and use it in GitHub Desktop.
mkdir trydiff
git init
vim -p readme
git status
//predict the status
git diff
//predict the diff
//if diff is ok :
git add
git diff head
git commit
vim -p readme > "type a new line"
git status
//predict the status
git diff
git add
git diff HEAD
git commit
//repeat this cycle 3 more times
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment