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
PPTX
Version control system and Git
PDF
Git in Eclipse
PDF
Git training with Devaamo
KEY
Helios in Action: Git at Eclipse
PPTX
Understanding GIT and Version Control
PDF
How to store large binary files in git repositories
PPTX
Workshop on Source control, git merge walkthroughs
Version control system and Git
Git in Eclipse
Git training with Devaamo
Helios in Action: Git at Eclipse
Understanding GIT and Version Control
How to store large binary files in git repositories

What's hot (20)

PPTX
Git 101 for_tarad_dev
PPTX
Git and github fundamentals
PPTX
Git and github introduction
ODP
Git for standalone use
PDF
Introduction to Git
PPTX
Web Programming - Git basics
PPTX
PDF
Introduction to Git
PDF
Getting started With GIT
PDF
Contributing to open source using Git
ODP
Git, Beginner to Advanced Survey
PPTX
Git in 10 minutes
PDF
Version control
PDF
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
PPTX
Extra bit with git
PPTX
Git 101
PDF
Presentacion git
PPTX
Git intro hands on windows with msysgit
PPTX
Extra bit with git
PPTX
How to install and use git
Git 101 for_tarad_dev
Git and github fundamentals
Git and github introduction
Git for standalone use
Introduction to Git
Web Programming - Git basics
Introduction to Git
Getting started With GIT
Contributing to open source using Git
Git, Beginner to Advanced Survey
Git in 10 minutes
Version control
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
Extra bit with git
Git 101
Presentacion git
Git intro hands on windows with msysgit
Extra bit with git
How to install and use git
Ad

Viewers also liked (12)

PPTX
Slideshare
DOCX
santosh cv2
PDF
Product rework and kit assembly
PDF
Deborah Lindquist Portfolio 2016
PPS
Zabele
PDF
Diploma Cert. 300 dpi
PDF
2015 12-30 présentation générique pnt fr 2016
PDF
план заходів військово патріотичного виховання
PDF
WP Management Reporting Excellence_3
DOC
Malik it eng 7 years exp
PPTX
Analiza swot
PDF
61_Biosensor
Slideshare
santosh cv2
Product rework and kit assembly
Deborah Lindquist Portfolio 2016
Zabele
Diploma Cert. 300 dpi
2015 12-30 présentation générique pnt fr 2016
план заходів військово патріотичного виховання
WP Management Reporting Excellence_3
Malik it eng 7 years exp
Analiza swot
61_Biosensor
Ad

Similar to Git (20)

PPTX
1-Intro to VC & GIT PDF.pptx
PPTX
Introduction to GitHub, Open Source and Tech Article
PDF
SessionThree_IntroductionToVersionControlSystems
PPTX
Git&GitHub.pptx
PPTX
Git and github
PPTX
Git and Github
PPTX
Git training (basic)
PDF
GIT_Overview.
PDF
Github and Git What the fuck is this shit .pdf
PPTX
Git Series - Part 1
PPT
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
PPT
Git and GitHUB Explanation and simple coding for CLI
PPTX
GDSC23 - Github Workshop Presentation.pptx
PPTX
Introduction to Git and Github
PPT
PPTX
Introduction to git & GitHub
PPTX
Github Session organized by GDG on campus SCOE.pptx
PDF
Git Version Control for the Complete N00b by Adam LaBarge
PPTX
Git 101 for Beginners
PDF
Git basics for beginners
1-Intro to VC & GIT PDF.pptx
Introduction to GitHub, Open Source and Tech Article
SessionThree_IntroductionToVersionControlSystems
Git&GitHub.pptx
Git and github
Git and Github
Git training (basic)
GIT_Overview.
Github and Git What the fuck is this shit .pdf
Git Series - Part 1
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
Git and GitHUB Explanation and simple coding for CLI
GDSC23 - Github Workshop Presentation.pptx
Introduction to Git and Github
Introduction to git & GitHub
Github Session organized by GDG on campus SCOE.pptx
Git Version Control for the Complete N00b by Adam LaBarge
Git 101 for Beginners
Git basics for beginners

Recently uploaded (20)

PPTX
lesson6-211001025531lesson plan ppt.pptx
PDF
Nykaa-Strategy-Case-Fixing-Retention-UX-and-D2C-Engagement (1).pdf
PPTX
Self management and self evaluation presentation
PPTX
_ISO_Presentation_ISO 9001 and 45001.pptx
PDF
natwest.pdf company description and business model
PPTX
An Unlikely Response 08 10 2025.pptx
PPTX
Project and change Managment: short video sequences for IBA
DOCX
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
PPTX
Human Mind & its character Characteristics
PPT
First Aid Training Presentation Slides.ppt
PPTX
worship songs, in any order, compilation
PPTX
MERISTEMATIC TISSUES (MERISTEMS) PPT PUBLIC
PPTX
water for all cao bang - a charity project
PPTX
Relationship Management Presentation In Banking.pptx
PPTX
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
PPTX
AcademyNaturalLanguageProcessing-EN-ILT-M02-Introduction.pptx
PPTX
Lesson-7-Gas. -Exchange_074636.pptx
PPTX
2025-08-10 Joseph 02 (shared slides).pptx
PPTX
Sustainable Forest Management ..SFM.pptx
PDF
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
lesson6-211001025531lesson plan ppt.pptx
Nykaa-Strategy-Case-Fixing-Retention-UX-and-D2C-Engagement (1).pdf
Self management and self evaluation presentation
_ISO_Presentation_ISO 9001 and 45001.pptx
natwest.pdf company description and business model
An Unlikely Response 08 10 2025.pptx
Project and change Managment: short video sequences for IBA
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
Human Mind & its character Characteristics
First Aid Training Presentation Slides.ppt
worship songs, in any order, compilation
MERISTEMATIC TISSUES (MERISTEMS) PPT PUBLIC
water for all cao bang - a charity project
Relationship Management Presentation In Banking.pptx
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
AcademyNaturalLanguageProcessing-EN-ILT-M02-Introduction.pptx
Lesson-7-Gas. -Exchange_074636.pptx
2025-08-10 Joseph 02 (shared slides).pptx
Sustainable Forest Management ..SFM.pptx
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf

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 “ 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)
  • 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. ?