SlideShare a Scribd company logo
GIT: Why And
How to
Presenter: Huong Nguyen
Skype: lan_huong_a3
CONTENT
• What is Git
• Basic Use & How to
• Advance Use
• Useful Reference
Oops, I need this
And this
And this
And this
A contributor to work with
But don’t break the rules
And, Finally...
Somebody tell me what did I do with my source?
Too much requirements?
Let me answer
• A Source code management system (SCMS):
• Allows you to track and undo changes.
• Allows multiple people to work on the same code at once.
• Allows you to make changes to multiple versions of a your
software.
• Allows you to deploy software to multiple servers.
• Makes Code Development Social through
• Notifications, Comments, Wiki & Graphs
SVN STORAGE
GIT STORAGE
Nearly Every Operation Is Local
Git Status
Git Config & Help
Config:
● $ git config --global user.name "John Doe"
● $ git config --global user.email johndoe@example.com
Help:
● $ git help <verb>
● $ git <verb> --help
● $ man git-<verb>
Example:
$ git help config
Git Basics
Working with existsing directory
● $ git init
● $ git add README
● $ git commit -m 'initial project version'
● $ git remote add origin https://github.com/schacon/grit.git
● $ git pull
● $ git status
● $ git commit //If neccessary
● $ git push -u origin master
Git Basics
Clone from directory: SSH Key
$ git clone user@git.example.com:/opt/git/my_project.git
Create SSH Key:
https://help.github.com/articles/generating-ssh-keys
VERSION CONTROL
GIT TAG: used for creating stable release
$ git tag version1.1
Create tag
$ git push --tags
Push tag to server
Good to know
● $ git fetch
//Shows what will come down with a pull
● $ git reset HEAD README
//Unstage the last commit
● $ git checkhout --README
//Revert file README
● $ git revert
//Commit changes to undo last commits
● $ git commit -amend
//Modify the last commit
● $ git blame
//Determine who made a specific change
GIT Branches
Use Branch
$ git checkout -b newBranch
create new branch
$ git branch
List all branch
$ git checkout newBranch
Move HEAD to new branch
$ git branch -d iss53
Delete branch iss53
$ git merge iss53
Merge current branch with iss53
TOOL
GitXDev
SmartGit
…
Tool are listed here
Some web-based hosting
Reference
Git guide from github.io
Set up Git with bitbucket
Pro Git book
THANK YOU!

More Related Content

PPTX
Git basics : a beginner's guide
ODP
Get Familiar With Git
PPTX
Getting started & Hosting your website on GitHub
PDF
Introduction To Git
PDF
Advanced Git
PPTX
Git and github fundamentals
PDF
Introduction to Git
PPTX
Open source
Git basics : a beginner's guide
Get Familiar With Git
Getting started & Hosting your website on GitHub
Introduction To Git
Advanced Git
Git and github fundamentals
Introduction to Git
Open source

What's hot (20)

PPTX
Extra bit with git
PDF
Advance workshop on git
PPTX
Git Gyan
PPTX
Extra bit with git
PPTX
Git intro hands on windows with msysgit
PPTX
Introduction to Git and Github
PDF
Git Tricks
PPTX
Git lord | A brief intro about git commands in Star Wars theme
PPTX
git-and-bitbucket
PDF
Version Control with Git
ODP
Git: be social
PPTX
PPTX
Git representation
PDF
Getting started With GIT
PDF
Git & github
PPTX
Git - the stupid content tracker
PDF
Puppet at GitHub
ODP
Git tech talk
ODP
Javascript in Linux Desktop
PPTX
Extra bit with git
Advance workshop on git
Git Gyan
Extra bit with git
Git intro hands on windows with msysgit
Introduction to Git and Github
Git Tricks
Git lord | A brief intro about git commands in Star Wars theme
git-and-bitbucket
Version Control with Git
Git: be social
Git representation
Getting started With GIT
Git & github
Git - the stupid content tracker
Puppet at GitHub
Git tech talk
Javascript in Linux Desktop
Ad

Similar to Git: Why And How to (20)

PPT
Github By Nyros Developer
DOCX
Git github
PPTX
Git-guidance for beginner- IT support.pptx.pptx
PPTX
Git-guidance for beginner- IT support.pptx
PDF
GIT_GITHUB_2016_06_17
PPT
Git presentation
PPTX
Working in Team using Git in Unity
PPTX
Git and Github workshop GDSC MLRITM
PDF
Getting some Git
ODP
Git presentation
PPTX
14 oct Git & GitHub.pptx
PPTX
Introduction To Git Workshop
PDF
Git training v10
PPTX
Git Ninja KT (GitHub to GitLab)
KEY
Git Distributed Version Control System
PPT
Git installation and configuration
PDF
Git with the flow
PDF
Advanted git
ODP
GIT from n00b
PPT
Introduction to Git and Github
Github By Nyros Developer
Git github
Git-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx
GIT_GITHUB_2016_06_17
Git presentation
Working in Team using Git in Unity
Git and Github workshop GDSC MLRITM
Getting some Git
Git presentation
14 oct Git & GitHub.pptx
Introduction To Git Workshop
Git training v10
Git Ninja KT (GitHub to GitLab)
Git Distributed Version Control System
Git installation and configuration
Git with the flow
Advanted git
GIT from n00b
Introduction to Git and Github
Ad

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Big Data Technologies - Introduction.pptx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
KodekX | Application Modernization Development
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Electronic commerce courselecture one. Pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Empathic Computing: Creating Shared Understanding
Building Integrated photovoltaic BIPV_UPV.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
sap open course for s4hana steps from ECC to s4
Encapsulation_ Review paper, used for researhc scholars
Big Data Technologies - Introduction.pptx
Machine learning based COVID-19 study performance prediction
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Per capita expenditure prediction using model stacking based on satellite ima...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Git: Why And How to

  • 1. GIT: Why And How to Presenter: Huong Nguyen Skype: lan_huong_a3
  • 2. CONTENT • What is Git • Basic Use & How to • Advance Use • Useful Reference
  • 7. A contributor to work with But don’t break the rules
  • 8. And, Finally... Somebody tell me what did I do with my source?
  • 10. Let me answer • A Source code management system (SCMS): • Allows you to track and undo changes. • Allows multiple people to work on the same code at once. • Allows you to make changes to multiple versions of a your software. • Allows you to deploy software to multiple servers. • Makes Code Development Social through • Notifications, Comments, Wiki & Graphs
  • 12. GIT STORAGE Nearly Every Operation Is Local
  • 14. Git Config & Help Config: ● $ git config --global user.name "John Doe" ● $ git config --global user.email johndoe@example.com Help: ● $ git help <verb> ● $ git <verb> --help ● $ man git-<verb> Example: $ git help config
  • 15. Git Basics Working with existsing directory ● $ git init ● $ git add README ● $ git commit -m 'initial project version' ● $ git remote add origin https://github.com/schacon/grit.git ● $ git pull ● $ git status ● $ git commit //If neccessary ● $ git push -u origin master
  • 16. Git Basics Clone from directory: SSH Key $ git clone user@git.example.com:/opt/git/my_project.git Create SSH Key: https://help.github.com/articles/generating-ssh-keys
  • 17. VERSION CONTROL GIT TAG: used for creating stable release $ git tag version1.1 Create tag $ git push --tags Push tag to server
  • 18. Good to know ● $ git fetch //Shows what will come down with a pull ● $ git reset HEAD README //Unstage the last commit ● $ git checkhout --README //Revert file README ● $ git revert //Commit changes to undo last commits ● $ git commit -amend //Modify the last commit ● $ git blame //Determine who made a specific change
  • 20. Use Branch $ git checkout -b newBranch create new branch $ git branch List all branch $ git checkout newBranch Move HEAD to new branch $ git branch -d iss53 Delete branch iss53 $ git merge iss53 Merge current branch with iss53
  • 23. Reference Git guide from github.io Set up Git with bitbucket Pro Git book