• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Git General
 

Git General

on

  • 760 views

 

Statistics

Views

Total Views
760
Views on SlideShare
760
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Git General Git General Presentation Transcript

    • UNDERSTANDING GIT Chen, Zhongke Mar 15, 2012 Confidential and Proprietary
    • HISTORY SCCS/RCS • Single File (70~80) VSS • check-out/check-in (90) • update/commit Centralized CVS (90) SVN • atomic commit (00) TeamWare,BitKeeper, • Distributed? GIT,Mercurial,Bazaar (00) Confidential and Proprietary
    • WHAT’S GIT distributed› Git is an open source version control system designed for speed and efficiency› Initial developed by Linus Torvalds› Used by e.g. Linux kernel and Ruby on Rails, Android Confidential and Proprietary
    • GIT CONCEPTS: REPOSITORY, REVISION,WORKING DIRECTORY, STAGE Confidential and Proprietary
    • EXERCISE 1› git config --global user.name “zhongkchen”› git config --global user.email zhongkchen@paypal.com› git init # create a new repository› git add # add file to stage› git rm› git mv› git commit # commit files from stage to repo› git status # check the status of working dir and stage› git log # check history in repo› git diff # compare working dir with stage› git diff --cached # compare stage with the repo› .gitignore # a special file› Advanced: git stash, git blame, git reset, git revert Confidential and Proprietary
    • GIT CONCEPTS: BRANCH AND MERGE 1 Confidential and Proprietary
    • GIT CONCEPTS: BRANCH AND MERGE 2 Confidential and Proprietary
    • GIT CONCEPTS: BRANCH AND MERGE 3 Confidential and Proprietary
    • EXERCISE 2› git branch› git checkout› git merge› git branch -d› Advanced: git rebase, git cherry-pick Confidential and Proprietary
    • GIT CONCEPTS: CLONE, FETCH, PUSH Confidential and Proprietary
    • EXERCISE 3› git clone› git fetch origin› git merge› git push origin master› git pull› advanced: – config file – git remote Confidential and Proprietary
    • REFERENCE› Intro to Distributed Version Control Illustrated› Distributed Revision Control (Wikipedia)› Pro Git› Tech Talk: Linus Torvalds on git Confidential and Proprietary