Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Hands on with Version Control System: GIT (Part 1)

Dhrumil Shah
September 30, 2015

Hands on with Version Control System: GIT (Part 1)

This deck helps you to understand what is GIt, How to use GIT with its different command and how to add remote repository.

Dhrumil Shah

September 30, 2015
Tweet

More Decks by Dhrumil Shah

Other Decks in Technology

Transcript

  1. GIT

  2. Why GIT? • Speed • Simple Design • Strong support

    for parallel branches • Fully distributed • Able to handle large projects • Able to handle large projects • Ensure integrity
  3. GIT is a file system GIT thinks of its data

    like a set of snapshots of mini system of mini system
  4. GIT has integrity GIT uses SHA-1 for checksum In GIT

    everything is checksum In GIT everything is checksum
  5. GIT doesn’t delete GIT generally only adds data You can

    easily recover if you got messed up You can easily recover if you got messed up
  6. Remove file From staging area $git rm --cached test.txt From

    index and file system From index and file system $git rm test.txt
  7. Show log Entire $git log Date Filtering Date Filtering $git

    log --since=2.weeks $git log --since=“2 years 1 day 3 minutes ago”
  8. Show difference Unstagged changes $git diff Staged changes $git diff

    --cached $git diff --cached Relative to specific revision $git diff 17765f $git diff HEAD^
  9. Add remote repositories $git remote add origin “GIT URL” e.g.

    $git remote add origin https://github.com/dhuma1981/GDGAhmedabad_HOWGIT.git