SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
Beginning git
                              @ghosTM55




Sunday, November 20, 11
Outline

                          What is git?

                          How do we use git?

                          Basic commands

                          Collaboration on a powerful platform




Sunday, November 20, 11
Version Control System

                          rcs

                          subversion

                           git

Sunday, November 20, 11
Killing features

                          Fully distributed
                            Fast

                            Local

                            Secure


                          Strong support for non-linear development

                          Snapshots, not differences



Sunday, November 20, 11
When to use git?



                          Work on a project together
                          Backup small files




Sunday, November 20, 11
Get a git repo



                          git init
                          git clone




Sunday, November 20, 11
Basic commands

                          git status

                          git diff

                          git commit

                          git push

                          git pull



Sunday, November 20, 11
.gitignore


                          *.bak

                          !emacs.bak

                          lib/

                          build/*.o




Sunday, November 20, 11
File changes



                          git mv

                          git rm




Sunday, November 20, 11
View commit history

                          git log

                          git log -p -2

                          git log --pretty=oneline --graph

                          git log --pretty=format:”%format”

                          git log --since=2.weeks



Sunday, November 20, 11
Undoing things



                          git commit --amend

                          git reset




Sunday, November 20, 11
Branch

                          git branch

                          git branch branch_name

                          git checkout branch_name

                          git merge branch_name

                          git branch -d branch_name



Sunday, November 20, 11
Teamwork time


                          git clone

                          git remote add remote_name remote_address

                          git pull remote_name

                          git push remote_name branch_name




Sunday, November 20, 11
github


                          Most popular project hosting service

                          Lots of great projects and developers

                          It inspires developers to do better




Sunday, November 20, 11
In China?




                            0
Sunday, November 20, 11
Here we go




Sunday, November 20, 11
Why?
                          Promote Chinese opensource projects

                          Promote Chinese opensource communities

                          Easier for newbies take part in projects

                          Easier for enterprises to hire developers

                          Easier for all of you get tech info

                          Why NOT?


Sunday, November 20, 11
We’re still young

                          Let’s work harder for tomorrow




                                  THX :)
Sunday, November 20, 11

Weitere ähnliche Inhalte

Ähnlich wie Beginning git

Git tech talk
Git tech talkGit tech talk
Git tech talk
razasayed
 
Git the Wnderfull tool
Git the Wnderfull toolGit the Wnderfull tool
Git the Wnderfull tool
Amitoj Singh
 

Ähnlich wie Beginning git (20)

Working with Git
Working with GitWorking with Git
Working with Git
 
Git tech talk
Git tech talkGit tech talk
Git tech talk
 
Git Tech Talk
Git  Tech TalkGit  Tech Talk
Git Tech Talk
 
Wokshop de Git
Wokshop de Git Wokshop de Git
Wokshop de Git
 
Git cheat-sheets
Git cheat-sheetsGit cheat-sheets
Git cheat-sheets
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Improving your workflow with git
Improving your workflow with gitImproving your workflow with git
Improving your workflow with git
 
Git
GitGit
Git
 
Git the Wnderfull tool
Git the Wnderfull toolGit the Wnderfull tool
Git the Wnderfull tool
 
Git 零基础介绍
Git 零基础介绍Git 零基础介绍
Git 零基础介绍
 
Get going with_git_ppt
Get going with_git_pptGet going with_git_ppt
Get going with_git_ppt
 
Thinking in Git
Thinking in GitThinking in Git
Thinking in Git
 
Git! Why? How?
Git! Why? How?Git! Why? How?
Git! Why? How?
 
T3dd10 git
T3dd10 gitT3dd10 git
T3dd10 git
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
 
Git training
Git trainingGit training
Git training
 
How Git and Gerrit make you more productive
How Git and Gerrit make you more productiveHow Git and Gerrit make you more productive
How Git and Gerrit make you more productive
 
The Fundamentals of Git
The Fundamentals of GitThe Fundamentals of Git
The Fundamentals of Git
 
Github flow
Github flowGithub flow
Github flow
 
Git and Github workshop
Git and Github workshopGit and Github workshop
Git and Github workshop
 

Mehr von Rhythm Sun

Trello workflow by @imRhythm
Trello workflow by @imRhythmTrello workflow by @imRhythm
Trello workflow by @imRhythm
Rhythm Sun
 
Bitcoin and retail
Bitcoin and retailBitcoin and retail
Bitcoin and retail
Rhythm Sun
 
Garage cafe keynote peak ji_no_video
Garage cafe keynote peak ji_no_videoGarage cafe keynote peak ji_no_video
Garage cafe keynote peak ji_no_video
Rhythm Sun
 
Doc 2011101412020074
Doc 2011101412020074Doc 2011101412020074
Doc 2011101412020074
Rhythm Sun
 
Doc 2011101411284862
Doc 2011101411284862Doc 2011101411284862
Doc 2011101411284862
Rhythm Sun
 
Doc 2011101410543721
Doc 2011101410543721Doc 2011101410543721
Doc 2011101410543721
Rhythm Sun
 
Doc 2011101404575913
Doc 2011101404575913Doc 2011101404575913
Doc 2011101404575913
Rhythm Sun
 
Doc 2010050608572429
Doc 2010050608572429Doc 2010050608572429
Doc 2010050608572429
Rhythm Sun
 
火狐2011 sfd讲稿
火狐2011 sfd讲稿火狐2011 sfd讲稿
火狐2011 sfd讲稿
Rhythm Sun
 
Sunpinyin and it's future
Sunpinyin and it's futureSunpinyin and it's future
Sunpinyin and it's future
Rhythm Sun
 
Customize snipmate
Customize snipmateCustomize snipmate
Customize snipmate
Rhythm Sun
 
Adorable python
Adorable pythonAdorable python
Adorable python
Rhythm Sun
 
First meetingwithgit
First meetingwithgitFirst meetingwithgit
First meetingwithgit
Rhythm Sun
 

Mehr von Rhythm Sun (18)

长连接服务 WebSocket Service
长连接服务 WebSocket Service长连接服务 WebSocket Service
长连接服务 WebSocket Service
 
Trello workflow by @imRhythm
Trello workflow by @imRhythmTrello workflow by @imRhythm
Trello workflow by @imRhythm
 
Bitcoin and retail
Bitcoin and retailBitcoin and retail
Bitcoin and retail
 
Garage cafe keynote peak ji_no_video
Garage cafe keynote peak ji_no_videoGarage cafe keynote peak ji_no_video
Garage cafe keynote peak ji_no_video
 
Doc 2011101412020074
Doc 2011101412020074Doc 2011101412020074
Doc 2011101412020074
 
Doc 2011101411284862
Doc 2011101411284862Doc 2011101411284862
Doc 2011101411284862
 
Doc 2011101410543721
Doc 2011101410543721Doc 2011101410543721
Doc 2011101410543721
 
Doc 2011101404575913
Doc 2011101404575913Doc 2011101404575913
Doc 2011101404575913
 
Doc 2010050608572429
Doc 2010050608572429Doc 2010050608572429
Doc 2010050608572429
 
Outside
OutsideOutside
Outside
 
火狐2011 sfd讲稿
火狐2011 sfd讲稿火狐2011 sfd讲稿
火狐2011 sfd讲稿
 
Linuxdeepin
LinuxdeepinLinuxdeepin
Linuxdeepin
 
Sunpinyin and it's future
Sunpinyin and it's futureSunpinyin and it's future
Sunpinyin and it's future
 
Customize snipmate
Customize snipmateCustomize snipmate
Customize snipmate
 
Adorable python
Adorable pythonAdorable python
Adorable python
 
Zsh
ZshZsh
Zsh
 
Using vim
Using vimUsing vim
Using vim
 
First meetingwithgit
First meetingwithgitFirst meetingwithgit
First meetingwithgit
 

Kürzlich hochgeladen

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 

Beginning git

  • 1. Beginning git @ghosTM55 Sunday, November 20, 11
  • 2. Outline What is git? How do we use git? Basic commands Collaboration on a powerful platform Sunday, November 20, 11
  • 3. Version Control System rcs subversion git Sunday, November 20, 11
  • 4. Killing features Fully distributed Fast Local Secure Strong support for non-linear development Snapshots, not differences Sunday, November 20, 11
  • 5. When to use git? Work on a project together Backup small files Sunday, November 20, 11
  • 6. Get a git repo git init git clone Sunday, November 20, 11
  • 7. Basic commands git status git diff git commit git push git pull Sunday, November 20, 11
  • 8. .gitignore *.bak !emacs.bak lib/ build/*.o Sunday, November 20, 11
  • 9. File changes git mv git rm Sunday, November 20, 11
  • 10. View commit history git log git log -p -2 git log --pretty=oneline --graph git log --pretty=format:”%format” git log --since=2.weeks Sunday, November 20, 11
  • 11. Undoing things git commit --amend git reset Sunday, November 20, 11
  • 12. Branch git branch git branch branch_name git checkout branch_name git merge branch_name git branch -d branch_name Sunday, November 20, 11
  • 13. Teamwork time git clone git remote add remote_name remote_address git pull remote_name git push remote_name branch_name Sunday, November 20, 11
  • 14. github Most popular project hosting service Lots of great projects and developers It inspires developers to do better Sunday, November 20, 11
  • 15. In China? 0 Sunday, November 20, 11
  • 16. Here we go Sunday, November 20, 11
  • 17. Why? Promote Chinese opensource projects Promote Chinese opensource communities Easier for newbies take part in projects Easier for enterprises to hire developers Easier for all of you get tech info Why NOT? Sunday, November 20, 11
  • 18. We’re still young Let’s work harder for tomorrow THX :) Sunday, November 20, 11