SlideShare ist ein Scribd-Unternehmen logo
1 von 23
GIT
Get started to use Git
Git Real Video
GIT compares
with SVN
decentralization vs
centeralization
revision system
repository structure
standard process
Create a new
Repo
git init:
File life cycle
Untracked
Git doesn't know about these files
Tracked, unmodifed
Git knows about them, and there have been
no changes.
Tracked, modified
File is in git, but changes have been made
that git doesn't know about.
Staged
Changes to this file will be committed next time you
commit.
Staging &
Commitgit status, git add, git
diff, git commit
Undo
git commit –amend, git reset
You just
learned…...how to add new files to
the repository.
...how to stage and commit
new changes.
...how to check the status of
your current changes.
...how to undo changes to
files and amend commits.
Remotes 1
create a repo ( github )
cloning a repo ( github )
git remote add origin, git push –u origin
master, git clone
Remotes 2
push
pull &
conflict
You just
learned…
...how to create a new
repository in github.
...how to clone remote
repos and push changes to
them.
...how to deal with merge
conflicts.
Branches Part I
What is branches
A branch is really just a
seperated
version of your code.
E.g., A 'pretty' version of
your paper,
vs. one you're overhauling.
In technical terms, it is a
pointer to
a commit
commit
Repo: revisit
Branches Part 2
A branch is a
pointer to a commit
Branches Part 3
The files in our working
directory reflect HEAD
Branches Part 4
Two branches can point to
the same commit
Branches Part 5
Move HEAD with
checkout
Branches Part 6
New commits move the
HEAD branch
Merge 1
A merge scenario
Merge 2
Another merge scenario
Using branches
and tags
You just
learned…
What tags and branches
are.
How to make one.
How to merge changes from
one branch onto another
branch.
Git Flow
Branching Strategy
Standard process:
http://nvie.com/posts/a-successful-git-branching-
model/
The software tool
SourceTree : http://www.sourcetreeapp.com/
Master, Develop, Feature
branches
Other advanced
features
http://pan.baidu.com/s/1mgiEKQ0
Reset
rebase

Weitere ähnliche Inhalte

Was ist angesagt? (10)

Git
GitGit
Git
 
Git & github
Git & githubGit & github
Git & github
 
Workshop on Source control, git merge walkthroughs
Workshop on Source control, git merge walkthroughsWorkshop on Source control, git merge walkthroughs
Workshop on Source control, git merge walkthroughs
 
Git in Eclipse
Git in EclipseGit in Eclipse
Git in Eclipse
 
Helios in Action: Git at Eclipse
Helios in Action: Git at EclipseHelios in Action: Git at Eclipse
Helios in Action: Git at Eclipse
 
Gug #1 - Introduction to git
Gug #1 - Introduction to gitGug #1 - Introduction to git
Gug #1 - Introduction to git
 
Git training with Devaamo
Git training with DevaamoGit training with Devaamo
Git training with Devaamo
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git slides
Git slidesGit slides
Git slides
 
Enjoy privacy on Gitlab
Enjoy privacy on GitlabEnjoy privacy on Gitlab
Enjoy privacy on Gitlab
 

Andere mochten auch

Pr2reachingbuyers 1208953924235198-8(1)
Pr2reachingbuyers 1208953924235198-8(1)Pr2reachingbuyers 1208953924235198-8(1)
Pr2reachingbuyers 1208953924235198-8(1)
Sadiq Nosairat
 
Social network and modern war
Social network and modern warSocial network and modern war
Social network and modern war
Jons Song
 
Broiler Chicken Catching Procedure
Broiler Chicken Catching ProcedureBroiler Chicken Catching Procedure
Broiler Chicken Catching Procedure
Sherwin Camba
 

Andere mochten auch (19)

Mediacoach Hilde Lingier, ASO De Pinte
Mediacoach Hilde Lingier, ASO De PinteMediacoach Hilde Lingier, ASO De Pinte
Mediacoach Hilde Lingier, ASO De Pinte
 
Commonanduniqueusecases 110831113310-phpapp01
Commonanduniqueusecases 110831113310-phpapp01Commonanduniqueusecases 110831113310-phpapp01
Commonanduniqueusecases 110831113310-phpapp01
 
Thang canh
Thang canhThang canh
Thang canh
 
Pr2reachingbuyers 1208953924235198-8(1)
Pr2reachingbuyers 1208953924235198-8(1)Pr2reachingbuyers 1208953924235198-8(1)
Pr2reachingbuyers 1208953924235198-8(1)
 
E24:00 SWAPeritif June 2010
E24:00 SWAPeritif June 2010E24:00 SWAPeritif June 2010
E24:00 SWAPeritif June 2010
 
Fachadas de casas
Fachadas de casasFachadas de casas
Fachadas de casas
 
Kicking it up a notch!
Kicking it up a notch!Kicking it up a notch!
Kicking it up a notch!
 
1 uno
1 uno1 uno
1 uno
 
Digitaal prentenboek Antonio en Lieze project mediawijsheid-kopie
Digitaal prentenboek Antonio en Lieze project mediawijsheid-kopieDigitaal prentenboek Antonio en Lieze project mediawijsheid-kopie
Digitaal prentenboek Antonio en Lieze project mediawijsheid-kopie
 
Sm@rtbib is ...
Sm@rtbib is ...Sm@rtbib is ...
Sm@rtbib is ...
 
Social network and modern war
Social network and modern warSocial network and modern war
Social network and modern war
 
ABC van de sociale media --
ABC van de sociale media --ABC van de sociale media --
ABC van de sociale media --
 
Bib op school: mediawijsheid en nog meer...
Bib op school: mediawijsheid en nog meer...Bib op school: mediawijsheid en nog meer...
Bib op school: mediawijsheid en nog meer...
 
Scrum in-a-flash
Scrum in-a-flashScrum in-a-flash
Scrum in-a-flash
 
Межтерриториальный сетевой проект "Россия - родина моя!"
Межтерриториальный сетевой проект "Россия - родина моя!"Межтерриториальный сетевой проект "Россия - родина моя!"
Межтерриториальный сетевой проект "Россия - родина моя!"
 
Think about Development-mindset
Think about Development-mindsetThink about Development-mindset
Think about Development-mindset
 
Broiler Chicken Catching Procedure
Broiler Chicken Catching ProcedureBroiler Chicken Catching Procedure
Broiler Chicken Catching Procedure
 
Nutrition management Broiler
Nutrition management BroilerNutrition management Broiler
Nutrition management Broiler
 
Finance project(final)
Finance project(final)Finance project(final)
Finance project(final)
 

Ähnlich wie Git: a representation

Git in gear: How to track changes, travel back in time, and code nicely with ...
Git in gear: How to track changes, travel back in time, and code nicely with ...Git in gear: How to track changes, travel back in time, and code nicely with ...
Git in gear: How to track changes, travel back in time, and code nicely with ...
fureigh
 
A Simple Introduction to Git
A Simple Introduction to GitA Simple Introduction to Git
A Simple Introduction to Git
Daniel Tai
 

Ähnlich wie Git: a representation (20)

Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 
Introduction to Git.pptx
Introduction to Git.pptxIntroduction to Git.pptx
Introduction to Git.pptx
 
Git for the absolute beginners
Git for the absolute beginnersGit for the absolute beginners
Git for the absolute beginners
 
Learning git
Learning gitLearning git
Learning git
 
Git&GitHub.pptx
Git&GitHub.pptxGit&GitHub.pptx
Git&GitHub.pptx
 
Do you git it
Do you git it Do you git it
Do you git it
 
Git presentation
Git presentationGit presentation
Git presentation
 
Techoalien git
Techoalien gitTechoalien git
Techoalien git
 
Techoalien git
Techoalien gitTechoalien git
Techoalien git
 
Techoalien git
Techoalien gitTechoalien git
Techoalien git
 
git fast & minimal
git fast & minimalgit fast & minimal
git fast & minimal
 
git and github-1.pptx
git and github-1.pptxgit and github-1.pptx
git and github-1.pptx
 
WPGR - Intro to Git (on the Command Line)
WPGR - Intro to Git (on the Command Line)WPGR - Intro to Git (on the Command Line)
WPGR - Intro to Git (on the Command Line)
 
Learn Git Basics
Learn Git BasicsLearn Git Basics
Learn Git Basics
 
Git in gear: How to track changes, travel back in time, and code nicely with ...
Git in gear: How to track changes, travel back in time, and code nicely with ...Git in gear: How to track changes, travel back in time, and code nicely with ...
Git in gear: How to track changes, travel back in time, and code nicely with ...
 
A Simple Introduction to Git
A Simple Introduction to GitA Simple Introduction to Git
A Simple Introduction to Git
 
Git usage (Basics and workflow)
Git usage (Basics and workflow)Git usage (Basics and workflow)
Git usage (Basics and workflow)
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
 
Version controll.pptx
Version controll.pptxVersion controll.pptx
Version controll.pptx
 
Git and github introduction
Git and github introductionGit and github introduction
Git and github introduction
 

Kürzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Git: a representation