SlideShare a Scribd company logo
Topic:
Md Ariful Islam, MCE, UDE
&
Prasad Bambure
Outline
 What is version control sytem?
 What is git?
 Terminology
 Git work flows
 Git branch
 Get going with git commands
What is version control system?
 For working by yourself:
- Gives you a “time machine” for going back to earlier versions
- Gives you great support for different versions (standalone, web app, etc.) of the
same basic project
 For working with others:
- Greatly simplifies concurrent work, merging changes
What is git?
 Git is a free and open source distributed version control system designed to handle everything
from small to very large projects with speed and efficiency
 Initially designed and developed
by Linus Torvalds for
Linux kernel development
 First Released on June 15, 2005
 Git used for Linux version control
What is git? Continues....
 Version control systems keep track of the changes in files and directories over time.
Also,
 records the history of data
 acts like a time machine of data
In general:
 Git allows a team of people to work together, all using the same files. And it helps the team cope
with the confusion that tends to happen when multiple people are editing the same files.
There are many ways it can be set up and configured,
 how we use it: when a new employee starts, he downloads all the files from Github, which is an
online server we're all connected to.
So he has his local version of the files, I have my local version, our boss has his local version, etc.
Terminology
 Repository
- a storage of the history of changes of the
tracked files, hidden from the user
 Working Copy
- the set of tracked files
 Revision
- a specific state of data recorded in the
history
 Branch
- a separate line of history of the tracked
files deviating from the origin or another
branch
 Tag
- a reference to a specific state of a branch
Git workflow
Git workflow
1. YouMODIFY files in your working directory.
2. You STAGE the files, adding snapshots of them to your staging area.
3. You do a COMMIT, which takes the files as they are in the staging area and stores that
snapshot permanently to your git directory.
What tools we need?
Is git works in distributed environment?
Yes, it works in windows, linux, Mac OS, Solaris etc.
Git is available as:
 Source file
 Package
 Distributor
Here we are using bitbucket
Download or setup git from here:
https://git-scm.com/downloads
Git branch
 Two types: master and branch
 A branch represents an independent line of development. Branches serve as an
abstraction for the edit/stage/commit process.
 It comes from master
Get going with git
(how could we start)
 Open your git bash or terminal
 Steps 1) Configure git in your system 1st time
git config –-global user.name “Islam, Md Ariful“
git config –-global user.email “ ariful.islam@stud.uni-due.de“
 Step 2) Clone repository
git clone repository path/name.git(http/ssh)
 Step 3) initialization git on local
cd project/or right click on repository of project
git init or git init project
 Step 4) add remote
git remote add origin path/name.git
 Step 5) create file
touch README.txt (anyfile u could create as .js, .php)
Get going with git
(how could we start) continues..
 Step 6) (stage) add your new file/ add your specific modified file
git add –all
or git add –p path/filename
 Step 7) commits (its like comments that what have you done/changed)
git commit –m “text of your commits/works info“
 Step 8) upload your file
git push origin remote_repository_name
before push you need to check remote changes as:
git remote update
git fetch
git pull origin remote_repository_name
Get going with git
(how could we start) continues..
 Creating branch:
git branch branchname
or creating from master
git checkout origin master
git branch –b branchname
 deleting branch
git branch –d branchname
or, git branch –D branchname (force delete)
 Check branches:
git branch
Get going with git
(how could we start) continues..
 Merging updates
(adding others code to yours)
git merge branch1 branch2
 Abort merge
git merge –abort
 Check your work status
git status (that is recommended to do always)
References:
 Some of the slides are adopted from “Introduction to Git” available at
http://innovationontherun.com/presentation-
files/Introduction%20To%20GIT.ppt
 Some of the figure are adopted from Pro GIT by Chacon, which is available at
http://progit.org/book/
 Some of the slides are adopted from “Git 101” available at
http://assets.en.oreilly.com/1/event/45/Git%20101%20Tutorial%20Presentati
on.pdf
 https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository
?

More Related Content

PPTX
Workshop on Source control, git merge walkthroughs
David Lawrence
 
PPTX
Version control system and Git
ramubonkuri
 
PDF
Git in Eclipse
Dariusz Łuksza
 
PDF
Git training with Devaamo
Otto Kekäläinen
 
KEY
Helios in Action: Git at Eclipse
Chris Aniszczyk
 
PPTX
Understanding GIT and Version Control
Sourabh Sahu
 
PDF
How to store large binary files in git repositories
Matt Aunger
 
PPTX
Github
IFEDAYO ADEYEMI
 
Workshop on Source control, git merge walkthroughs
David Lawrence
 
Version control system and Git
ramubonkuri
 
Git in Eclipse
Dariusz Łuksza
 
Git training with Devaamo
Otto Kekäläinen
 
Helios in Action: Git at Eclipse
Chris Aniszczyk
 
Understanding GIT and Version Control
Sourabh Sahu
 
How to store large binary files in git repositories
Matt Aunger
 

What's hot (20)

PPTX
Git 101 for_tarad_dev
Somkiat Puisungnoen
 
PPTX
Git and github fundamentals
RajKharvar
 
PPTX
Git and github introduction
John(Qiang) Zhang
 
ODP
Git for standalone use
Ikuru Kanuma
 
PDF
Introduction to Git
Colin Su
 
PPTX
Web Programming - Git basics
Ömer Taşkın
 
PPTX
Github
abdulkareem_nm
 
PDF
Introduction to Git
Yan Vugenfirer
 
PDF
Getting started With GIT
GhadiAlGhosh
 
PDF
Contributing to open source using Git
Yan Vugenfirer
 
ODP
Git, Beginner to Advanced Survey
Rafal Rusin
 
PPTX
Git in 10 minutes
Safique Ahmed Faruque
 
PDF
Version control
Giovanni Marco Dall'Olio
 
PDF
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
DevOpsDays Tel Aviv
 
PPTX
Extra bit with git
gdgjss
 
PPTX
Git 101
jayrparro
 
PDF
Presentacion git
Ignacio Martín
 
PPTX
Git intro hands on windows with msysgit
Geshan Manandhar
 
PPTX
Extra bit with git
Himanshu Agrawal
 
PPTX
How to install and use git
Faysal Hossain Shezan
 
Git 101 for_tarad_dev
Somkiat Puisungnoen
 
Git and github fundamentals
RajKharvar
 
Git and github introduction
John(Qiang) Zhang
 
Git for standalone use
Ikuru Kanuma
 
Introduction to Git
Colin Su
 
Web Programming - Git basics
Ömer Taşkın
 
Introduction to Git
Yan Vugenfirer
 
Getting started With GIT
GhadiAlGhosh
 
Contributing to open source using Git
Yan Vugenfirer
 
Git, Beginner to Advanced Survey
Rafal Rusin
 
Git in 10 minutes
Safique Ahmed Faruque
 
Version control
Giovanni Marco Dall'Olio
 
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
DevOpsDays Tel Aviv
 
Extra bit with git
gdgjss
 
Git 101
jayrparro
 
Presentacion git
Ignacio Martín
 
Git intro hands on windows with msysgit
Geshan Manandhar
 
Extra bit with git
Himanshu Agrawal
 
How to install and use git
Faysal Hossain Shezan
 
Ad

Viewers also liked (12)

PPTX
Slideshare
gabomon19817350
 
DOCX
santosh cv2
Santosh Dora
 
PDF
Product rework and kit assembly
bryan hoffman
 
PDF
Deborah Lindquist Portfolio 2016
Deborah Lindquist
 
PPS
Zabele
pietra bravo
 
PDF
Diploma Cert. 300 dpi
Karthikeyan Vadivel
 
PDF
2015 12-30 présentation générique pnt fr 2016
Roland Streber
 
PDF
план заходів військово патріотичного виховання
freedom_Z
 
PDF
WP Management Reporting Excellence_3
Fabien Lennertz
 
DOC
Malik it eng 7 years exp
Abdul Malik
 
PPTX
Analiza swot
Cristina Dodu
 
PDF
61_Biosensor
Dr.Inbasekaran S
 
Slideshare
gabomon19817350
 
santosh cv2
Santosh Dora
 
Product rework and kit assembly
bryan hoffman
 
Deborah Lindquist Portfolio 2016
Deborah Lindquist
 
Zabele
pietra bravo
 
Diploma Cert. 300 dpi
Karthikeyan Vadivel
 
2015 12-30 présentation générique pnt fr 2016
Roland Streber
 
план заходів військово патріотичного виховання
freedom_Z
 
WP Management Reporting Excellence_3
Fabien Lennertz
 
Malik it eng 7 years exp
Abdul Malik
 
Analiza swot
Cristina Dodu
 
61_Biosensor
Dr.Inbasekaran S
 
Ad

Similar to Git (20)

PPT
Git introduction
satyendrajaladi
 
PPTX
1-Intro to VC & GIT PDF.pptx
HuthaifaAlmaqrami1
 
PPTX
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI
 
PDF
SessionThree_IntroductionToVersionControlSystems
Hellen Gakuruh
 
PPTX
Git&GitHub.pptx
KondiVenkatesh1
 
PPTX
Git and github
Teodora Ahkozidou
 
PPTX
Git and Github
Teodora Ahkozidou
 
PPTX
Git training (basic)
Arashdeepkaur16
 
PDF
GIT_Overview.
Mithilesh Singh
 
PDF
Github and Git What the fuck is this shit .pdf
krishna50blogging
 
PPTX
Git Series - Part 1
Mohamed Abdeen
 
PPT
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
loleto7559
 
PPT
Git and GitHUB Explanation and simple coding for CLI
kumaresan7751
 
PPTX
GDSC23 - Github Workshop Presentation.pptx
ChitreshGyanani1
 
PPTX
Introduction to Git and Github
Max Claus Nunes
 
PPT
git2.ppt
MohammadSamiuddin10
 
PPTX
Introduction to git & GitHub
Poornachandrakashi
 
PPTX
Github Session organized by GDG on campus SCOE.pptx
sanidhyanaik1907
 
PDF
Git Version Control for the Complete N00b by Adam LaBarge
East Bay WordPress Meetup
 
PPTX
Git 101 for Beginners
Anurag Upadhaya
 
Git introduction
satyendrajaladi
 
1-Intro to VC & GIT PDF.pptx
HuthaifaAlmaqrami1
 
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI
 
SessionThree_IntroductionToVersionControlSystems
Hellen Gakuruh
 
Git&GitHub.pptx
KondiVenkatesh1
 
Git and github
Teodora Ahkozidou
 
Git and Github
Teodora Ahkozidou
 
Git training (basic)
Arashdeepkaur16
 
GIT_Overview.
Mithilesh Singh
 
Github and Git What the fuck is this shit .pdf
krishna50blogging
 
Git Series - Part 1
Mohamed Abdeen
 
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
loleto7559
 
Git and GitHUB Explanation and simple coding for CLI
kumaresan7751
 
GDSC23 - Github Workshop Presentation.pptx
ChitreshGyanani1
 
Introduction to Git and Github
Max Claus Nunes
 
Introduction to git & GitHub
Poornachandrakashi
 
Github Session organized by GDG on campus SCOE.pptx
sanidhyanaik1907
 
Git Version Control for the Complete N00b by Adam LaBarge
East Bay WordPress Meetup
 
Git 101 for Beginners
Anurag Upadhaya
 

Recently uploaded (20)

PPTX
milgram study as level psychology core study (social approach)
dinhminhthu1405
 
PPTX
garment-industry in bangladesh. how bangladeshi industry is doing
tanvirhossain1570
 
PPTX
Enterprise Asset Management Overview with examples
ManikantaBN1
 
PPTX
Bob Stewart Journey to Rome 07 30 2025.pptx
FamilyWorshipCenterD
 
PDF
COSHH - Sri Ramachandar Bandi HSE in the Oil & Gas Industry (COSHH) Training ...
babufastdeals
 
PDF
Advanced-Web-Design-Crafting-the-Future-Web (1).pdf
vaghelavidhiba591
 
PPT
strucure of protein geomics for new .ppt
RakeshKumar508211
 
PDF
Developing Accessible and Usable Security Heuristics
Daniela Napoli
 
PPTX
A Power Point Presentaion of 2 test match
katarapiyush21
 
PPTX
AMFI - Investor Awareness Presentation.pptx
ssuser89d308
 
PDF
Helpful but Terrifying: Older Adults' Perspectives of AI in Remote Healthcare...
Daniela Napoli
 
PPTX
Joy And Peace In All Circumstances.pptx
FamilyWorshipCenterD
 
PPTX
DPIC Assingment_1.pptx.pptx for presentation
yashwork2607
 
PPTX
Introductions to artificial intelligence
rakshjain77
 
PPTX
Introduction_to_Python_Presentation.pptx
vikashkumargaya5861
 
PPTX
Public Speakingbjdsbkjfdkjdasnlkdasnlknadslnbsjknsakjscbnkjbncs.pptx
ranazunairriaz1
 
PPTX
GAMABA AWARDEES GINAW BILOG AND SALINTA MONON BY REYMART
purezagambala458
 
PDF
Securing Africa’s future: Technology, culture and the changing face of threat
Kayode Fayemi
 
PPTX
Describing the Organization's General Environment Identifying the Most Impact...
auntorkhastagirpujan
 
PPTX
Selecting relevant value chain/s for Impactful Development Policies
Francois Stepman
 
milgram study as level psychology core study (social approach)
dinhminhthu1405
 
garment-industry in bangladesh. how bangladeshi industry is doing
tanvirhossain1570
 
Enterprise Asset Management Overview with examples
ManikantaBN1
 
Bob Stewart Journey to Rome 07 30 2025.pptx
FamilyWorshipCenterD
 
COSHH - Sri Ramachandar Bandi HSE in the Oil & Gas Industry (COSHH) Training ...
babufastdeals
 
Advanced-Web-Design-Crafting-the-Future-Web (1).pdf
vaghelavidhiba591
 
strucure of protein geomics for new .ppt
RakeshKumar508211
 
Developing Accessible and Usable Security Heuristics
Daniela Napoli
 
A Power Point Presentaion of 2 test match
katarapiyush21
 
AMFI - Investor Awareness Presentation.pptx
ssuser89d308
 
Helpful but Terrifying: Older Adults' Perspectives of AI in Remote Healthcare...
Daniela Napoli
 
Joy And Peace In All Circumstances.pptx
FamilyWorshipCenterD
 
DPIC Assingment_1.pptx.pptx for presentation
yashwork2607
 
Introductions to artificial intelligence
rakshjain77
 
Introduction_to_Python_Presentation.pptx
vikashkumargaya5861
 
Public Speakingbjdsbkjfdkjdasnlkdasnlknadslnbsjknsakjscbnkjbncs.pptx
ranazunairriaz1
 
GAMABA AWARDEES GINAW BILOG AND SALINTA MONON BY REYMART
purezagambala458
 
Securing Africa’s future: Technology, culture and the changing face of threat
Kayode Fayemi
 
Describing the Organization's General Environment Identifying the Most Impact...
auntorkhastagirpujan
 
Selecting relevant value chain/s for Impactful Development Policies
Francois Stepman
 

Git

  • 1. Topic: Md Ariful Islam, MCE, UDE & Prasad Bambure
  • 2. Outline  What is version control sytem?  What is git?  Terminology  Git work flows  Git branch  Get going with git commands
  • 3. What is version control system?  For working by yourself: - Gives you a “time machine” for going back to earlier versions - Gives you great support for different versions (standalone, web app, etc.) of the same basic project  For working with others: - Greatly simplifies concurrent work, merging changes
  • 4. What is git?  Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency  Initially designed and developed by Linus Torvalds for Linux kernel development  First Released on June 15, 2005  Git used for Linux version control
  • 5. What is git? Continues....  Version control systems keep track of the changes in files and directories over time. Also,  records the history of data  acts like a time machine of data In general:  Git allows a team of people to work together, all using the same files. And it helps the team cope with the confusion that tends to happen when multiple people are editing the same files. There are many ways it can be set up and configured,  how we use it: when a new employee starts, he downloads all the files from Github, which is an online server we're all connected to. So he has his local version of the files, I have my local version, our boss has his local version, etc.
  • 6. Terminology  Repository - a storage of the history of changes of the tracked files, hidden from the user  Working Copy - the set of tracked files  Revision - a specific state of data recorded in the history  Branch - a separate line of history of the tracked files deviating from the origin or another branch  Tag - a reference to a specific state of a branch
  • 8. Git workflow 1. YouMODIFY files in your working directory. 2. You STAGE the files, adding snapshots of them to your staging area. 3. You do a COMMIT, which takes the files as they are in the staging area and stores that snapshot permanently to your git directory.
  • 9. What tools we need? Is git works in distributed environment? Yes, it works in windows, linux, Mac OS, Solaris etc. Git is available as:  Source file  Package  Distributor Here we are using bitbucket Download or setup git from here: https://git-scm.com/downloads
  • 10. Git branch  Two types: master and branch  A branch represents an independent line of development. Branches serve as an abstraction for the edit/stage/commit process.  It comes from master
  • 11. Get going with git (how could we start)  Open your git bash or terminal  Steps 1) Configure git in your system 1st time git config –-global user.name “Islam, Md Ariful“ git config –-global user.email “ [email protected]“  Step 2) Clone repository git clone repository path/name.git(http/ssh)  Step 3) initialization git on local cd project/or right click on repository of project git init or git init project  Step 4) add remote git remote add origin path/name.git  Step 5) create file touch README.txt (anyfile u could create as .js, .php)
  • 12. Get going with git (how could we start) continues..  Step 6) (stage) add your new file/ add your specific modified file git add –all or git add –p path/filename  Step 7) commits (its like comments that what have you done/changed) git commit –m “text of your commits/works info“  Step 8) upload your file git push origin remote_repository_name before push you need to check remote changes as: git remote update git fetch git pull origin remote_repository_name
  • 13. Get going with git (how could we start) continues..  Creating branch: git branch branchname or creating from master git checkout origin master git branch –b branchname  deleting branch git branch –d branchname or, git branch –D branchname (force delete)  Check branches: git branch
  • 14. Get going with git (how could we start) continues..  Merging updates (adding others code to yours) git merge branch1 branch2  Abort merge git merge –abort  Check your work status git status (that is recommended to do always)
  • 15. References:  Some of the slides are adopted from “Introduction to Git” available at http://innovationontherun.com/presentation- files/Introduction%20To%20GIT.ppt  Some of the figure are adopted from Pro GIT by Chacon, which is available at http://progit.org/book/  Some of the slides are adopted from “Git 101” available at http://assets.en.oreilly.com/1/event/45/Git%20101%20Tutorial%20Presentati on.pdf  https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository
  • 16. ?