Git Zhang Chi
Git• What• Why• How
What       Google
What                                                  git-scm.com• Gitis a free & open source, distributed version control...
WhatGithub.com
Why•••••
Why /•            Git• Server
why /        Git
WHY /        http://nvie.com/posts/a-successful-git-branching-model/
Why /• Git •              Git
Why /••                commit   commit•   commit
WHY /• msysgit   (http://code.google.com/p/msysgit/)• TortoiseGit   (http://code.google.com/p/tortoisegit/)
How•••
HOW /• git   init  •   To create a repository from an existing directory of files• git   clone  •   If you need to collabor...
HOW /•   git add    •   In Git, you have to add file contents to your staging area before you can        commit them.•   gi...
HOW /• git   pull  •   fetch from a remote repo and try to merge into the current branch• git   push  •   push your new br...
HOW /•   git checkout    •   switch to a new branch context•   git branch    •   list, create and manage working contexts•...
HOW /• git   init ----------------------------->• git   commit ----------------------->• modify...• git   commit ---------...
HOW /•   git branch newfeature ------------->        newfeature•   git checkout newfeature ---------->•   modify...•   git...
who      using Github.com
Ref• Git   Reference (http://gitref.org/)•A successful Git branching model (http://nvie.com/posts/a- successful-git-branch...
Thanks!
Upcoming SlideShare
Loading in …5
×

Git简介

825 views
749 views

Published on

初用Git,贻笑大方

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
825
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
14
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Git简介

  1. 1. Git Zhang Chi
  2. 2. Git• What• Why• How
  3. 3. What Google
  4. 4. What git-scm.com• Gitis a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
  5. 5. WhatGithub.com
  6. 6. Why•••••
  7. 7. Why /• Git• Server
  8. 8. why / Git
  9. 9. WHY / http://nvie.com/posts/a-successful-git-branching-model/
  10. 10. Why /• Git • Git
  11. 11. Why /•• commit commit• commit
  12. 12. WHY /• msysgit (http://code.google.com/p/msysgit/)• TortoiseGit (http://code.google.com/p/tortoisegit/)
  13. 13. How•••
  14. 14. HOW /• git init • To create a repository from an existing directory of files• git clone • If you need to collaborate with someone on a project, or if you want to get a copy of a project so you can look at or use the code, you will clone it.
  15. 15. HOW /• git add • In Git, you have to add file contents to your staging area before you can commit them.• git commit • Just commit to the local repo.• git log • show commit history of a branch
  16. 16. HOW /• git pull • fetch from a remote repo and try to merge into the current branch• git push • push your new branches and data to a remote repository
  17. 17. HOW /• git checkout • switch to a new branch context• git branch • list, create and manage working contexts• git merge • merge a branch context into your current one• git tag • tag a point in history as important
  18. 18. HOW /• git init ----------------------------->• git commit ----------------------->• modify...• git commit ----------------------->• git push -------------------------->
  19. 19. HOW /• git branch newfeature -------------> newfeature• git checkout newfeature ---------->• modify...• git commit ---------------------------->• git checkout master ----------------> master• git merge newfeature --------------> newfeature master
  20. 20. who using Github.com
  21. 21. Ref• Git Reference (http://gitref.org/)•A successful Git branching model (http://nvie.com/posts/a- successful-git-branching-model/)• Why Git is Better than X (http://whygitisbetterthanx.com/)
  22. 22. Thanks!

×