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

Version Control with Git

Version Control with Git

Introduction to version control with git

Imo Inyang

May 13, 2017
Tweet

More Decks by Imo Inyang

Other Decks in Education

Transcript

  1. • Full Stack Developer @ Reimnet • @imo_inyang on twitter

    [email protected] • Team Lead @ Edureck • www.edureck.com Imo Inyang
  2. What is Git? •Git is a distributed version control system.

    Git allows every contributor to have a local copy or “clone” of the main repository i.e. everyone maintains a local repository of their own which contains all the files and metadata present in the main repository. •You will understand it better by referring to the diagram below
  3. Initializing a git repo git init Adding / Staging files

    to git git add . All New files and folder git add readme.txt Single file
  4. Show git LOG git log Show git commit Git show

    Show file, folder and branch difference Git diff
  5. Create new branch git branch newbranch Switch branch git checkout

    newbranch Delete branch git branch -d newbranch
  6. Push To remote git push origin branch_name Fetch & Merge

    git pull Fetch from remote git fetch origin