Actions

EmSys

Git - Working With Git

From EdWiki

Revision as of 10:00, 23 June 2015 by Jshankar (Talk | contribs) (1 revision imported: EdWiki -- From Shukra)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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’