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

Git isthenewsexy

on

  • 16,360 views

 

Statistics

Views

Total Views
16,360
Views on SlideShare
581
Embed Views
15,779

Actions

Likes
1
Downloads
11
Comments
0

8 Embeds 15,779

http://ued.alipay.com 15746
http://xnny.net 14
http://cache.baidu.com 10
http://xianguo.com 4
http://ioshome.sinaapp.com 2
http://zhuaxia.com 1
http://cache.baiducontent.com 1
http://webcache.googleusercontent.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

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
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Git isthenewsexy Git isthenewsexy Presentation Transcript

  • Git is the new sexy @Vingel
  • Why?
  • Why?• it’s the stupid content tracker
  • Why?• it’s the stupid content tracker• it’s fast!
  • Why?• it’s the stupid content tracker• it’s fast!• it 1000 times sexy than SVN
  • Why?• it’s the stupid content tracker• it’s fast!• it 1000 times sexy than SVN• It’s written for Linux by Linus Torvalds
  • Installation
  • Installation• brew install git //short & sweet :)
  • Installation• brew install git //short & sweet :)• http://mac.github.com/
  • Installation• brew install git //short & sweet :)• http://mac.github.com/• http://code.google.com/p/msysgit/
  • Start
  • Start• git clone https://github.com/jquery/jquery.git
  • Start• git clone https://github.com/jquery/jquery.git• Initialized empty Git repository in /tmp/jquery/.git/ remote: Counting objects: 14043, done. remote: Compressing objects: 100% (4070/4070), done. remote: Total 14043 (delta 9717), reused 13753 (delta 9452) Receiving objects: 100% (14043/14043), 12.45 MiB | 288 KiB/s, done. Resolving deltas: 100% (9717/9717), done.
  • Using git
  • Using git• mkdir repo.git
  • Using git• mkdir repo.git• git init --bare
  • Using git• mkdir repo.git• git init --bare• git clone admin@alipay.im:/git/repo.git // password: admin
  • Using git• mkdir repo.git• git init --bare• git clone admin@alipay.im:/git/repo.git // password: admin• cd repo
  • Using git• mkdir repo.git• git init --bare• git clone admin@alipay.im:/git/repo.git // password: admin• cd repo• touch README
  • Using git• mkdir repo.git• git init --bare• git clone admin@alipay.im:/git/repo.git // password: admin• cd repo• touch README• git add README
  • Using git• mkdir repo.git• git init --bare• git clone admin@alipay.im:/git/repo.git // password: admin• cd repo• touch README• git add README• git ci -m “hello git”
  • Using git• mkdir repo.git• git init --bare• git clone admin@alipay.im:/git/repo.git // password: admin• cd repo• touch README• git add README• git ci -m “hello git”• git push
  • Git on Dropbox
  • That’s All!
  • Wait a minutes.
  • One More Thing
  • The Real World• git help • git fetch• git clone • git pullush• git diff • git pull• git status • git log• git branch • git config• git checkout • git tag• git merge/rebase • git submodule• git remote • git init• git commit • .......
  • Git Status
  • Git Push/Pull
  • Git branch
  • Merge
  • Rebase
  • Others• 销 git checkout -- file ( svn revert file)• 销 git commit --amend
  • Git 则• Commit• Commit Message• Commit, 发 毕 Push• Rebase 经 Push 东 http://progit.org/book/zh/ch3-6.html
  • Resource• http://git-scm.org• http://github.com // Git hosting• http://progit.org/book/zh/ // 书• http://sixrevisions.com/resources/git-tutorials- beginners/• https://gist.github.com/1284253 //Vingel’s .gitconfig• git flow //git 实