Git - Working With Git

From EdWiki

Working With Git

echo “I love Git” >> hello.txt
git diff
  • Shows changes we have made
git status
  • Shows list of modified files
git add hello.txt
git diff
  • No changes shown as diff compares to the index
git diff HEAD
  • Now can see the changes in working version
git status
git commit -m ‘Second commit’