SlideShare a Scribd company logo
Version Control System
GIT
Version control is a system that records changes to a file or
set of files over time so that you can recall specific versions
later
About Me
Palash Kanti Bachar
Tech Lead, Sharepoint & .Net Team
Professional Trainer
Agenda
● Version Control System
● What is Git
● Setup Git
● Create New Project
● Basic Snapshotting
● Branching & Merging
● Sharing & Updating Projects
● Inspection & Comparison
● Patching
● Ref Git - Reference (git-scm.com)
Version Control Systems
❏ Easily Management collaboration on a project by avoiding frustration of
swapping files.
❏ Ability to have unlimited number of developers working on the same code
base.
❏ Easily revert back to your files if something happened.
➢ Centralized Version Control Systems
➢ Distributed Version COntrol SYstems
Centralized Version Control Systems
❏ These systems (such as CVS, Subversion, and Perforce) have a single server that
contains all the versioned files, and a number of clients that check out files from
that central place
❏ Everyone knows to a certain degree
what everyone else on the project is doing.
Distributed Version Control Systems
❏ In a DVCS, clients don’t just check out the latest snapshot of the files; rather, they
fully mirror the repository, including its full history.
❏ Every clone is really a full backup of all the data.
What is GIT?
● GIT is free and open source distributed system with the emphasis on speed
and data integrity.
● Git thinks about its data more like a stream of snapshots.
Setup Git?
❏ Download git from Git - Downloads (git-scm.com)
Setup the download file
❏ To check the version git --version
❏ To View all the Settings
❏ To Change your identify
❏ To change default branch Name
Creating Project?
❏ To init the project git init
❏ To add all files git add .
❏ To commit the files git commit -m “Palash: Project init”
❏ To push the changes in github git remote add origin <repo-url>
❏ To push code git push origin master
❏ To clone the repository git clone <repo-url>
.git Directory Structure
GIT State Operation?
❏ There are 3 states in git (Modified, Staged, Committed)
❏ Modified means that you have changed the file but have not committed it to your
database yet.
❏ Staged means that you have marked a modified file in its current version to go into
your next commit snapshot.
❏ Committed means that the data is safely stored in your local database.
GIT State Operation?
Basic Command
❏ ADD: To add file git add <fileName> git add .
❏ STATUS: To show the status git status
-s short, -b branch, –show-stash, –long
❏ DIFF: To show the diff git diff
❏ COMMIT: To commit git commit -m <Message>
❏ NOTES: To add the notes git notes add -m 'Tested-by: Palash' <commit Ref>
To show notes git show -s <commit ref>
❏ RESTORE: To restore the files git restore hello.c
❏ RESET: Reset current HEAD git reset --hard HEAD
Branching & Merging
❏ BRANCH: To show all branch git branch -a
To create branch git branch dev
To Delete branch git branch -d dev, remote git push origin -d dev
❏ CHECKOUT: To checkout git checkout <branchname>
❏ MERGE: To merge git merge <branchName>, git merge origin/staging
❏ MERGETOOL: To resolve the conflict git mergetool
❏ LOG: To show logs git log
❏ STASH : To changes in a dirty working directory git stash
❏ TAG: Create, list, delete or verify a tag object signed with GPG git tag test
❏ WORK TREE: Reset current HEAD git reset --hard HEAD
Sharing and Updating Projects
❏ FETCH: To download objects and refs from the repository git fetch -a
❏ PULL: Fetch from and integrate with another repository or a local branch
git pull origin <branchname>
❏ PUSH: Update remote refs along with associated objects git push origin
<branch>
❏ REMOTE: Manage set of tracked repositories git remote
❏ SUBMODULE: Initialize, update or inspect submodules
git submodule add https://github.com/chaconinc/DbConnector
Inspection & Comparison
❏ SHOW: To Show various types of objects git show
❏ LOG: Fetch from and integrate with another repository or a local branch
git log
❏ DIFF: Show changes between commits, commit and working tree, etc git
diff
❏ DIFFTOOL: Show changes using common diff tools git difftool
❏ SHORTLOG: Summarize git log output
git shortlog
Visual Studio Git Features
❏ Show details in Demo
Be a professional, care about your code
Thank You!

More Related Content

PPTX
Git and github
PPTX
Git and Github
PPTX
Git 101
PPTX
Introduction to Git and Github
PPTX
Version Control with Git
PPTX
Presentation on Repository Control System
PPTX
Getting Started with Git: A Primer for SVN and TFS Users
PPTX
Git-guidance for beginner- IT support.pptx.pptx
Git and github
Git and Github
Git 101
Introduction to Git and Github
Version Control with Git
Presentation on Repository Control System
Getting Started with Git: A Primer for SVN and TFS Users
Git-guidance for beginner- IT support.pptx.pptx

Similar to Git.pptx (20)

PPTX
Git-guidance for beginner- IT support.pptx
PPTX
Mini-training: Let’s Git It!
PPTX
Git tips and tricks
PDF
Mini git tutorial
PPTX
01 - Git vs SVN
PDF
git- Most Of The Things About a Trending DVCS
PPTX
Git and github fundamentals
PPTX
GIT & Github introduction for beginners
PDF
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
PPTX
git github PPT_GDSCIIITK.pptx
PDF
Git Mastery
PPTX
Version Control System-git status,git add,git commit,git log.pptx
PPT
Git presentation
PDF
GIT_Overview.
PPT
Git and fundamentals
PDF
Git hub
PDF
Git basics for beginners
PPTX
Git presentation
PPTX
Learning Basic GIT Cmd
Git-guidance for beginner- IT support.pptx
Mini-training: Let’s Git It!
Git tips and tricks
Mini git tutorial
01 - Git vs SVN
git- Most Of The Things About a Trending DVCS
Git and github fundamentals
GIT & Github introduction for beginners
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
git github PPT_GDSCIIITK.pptx
Git Mastery
Version Control System-git status,git add,git commit,git log.pptx
Git presentation
GIT_Overview.
Git and fundamentals
Git hub
Git basics for beginners
Git presentation
Learning Basic GIT Cmd
Ad

Recently uploaded (20)

PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
top salesforce developer skills in 2025.pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Introduction to Artificial Intelligence
PDF
Digital Strategies for Manufacturing Companies
PPTX
history of c programming in notes for students .pptx
PPTX
Essential Infomation Tech presentation.pptx
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
medical staffing services at VALiNTRY
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
top salesforce developer skills in 2025.pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
2025 Textile ERP Trends: SAP, Odoo & Oracle
Design an Analysis of Algorithms I-SECS-1021-03
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
How to Migrate SBCGlobal Email to Yahoo Easily
How to Choose the Right IT Partner for Your Business in Malaysia
Wondershare Filmora 15 Crack With Activation Key [2025
Upgrade and Innovation Strategies for SAP ERP Customers
Introduction to Artificial Intelligence
Digital Strategies for Manufacturing Companies
history of c programming in notes for students .pptx
Essential Infomation Tech presentation.pptx
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PTS Company Brochure 2025 (1).pdf.......
medical staffing services at VALiNTRY
Ad

Git.pptx

  • 1. Version Control System GIT Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later
  • 2. About Me Palash Kanti Bachar Tech Lead, Sharepoint & .Net Team Professional Trainer
  • 3. Agenda ● Version Control System ● What is Git ● Setup Git ● Create New Project ● Basic Snapshotting ● Branching & Merging ● Sharing & Updating Projects ● Inspection & Comparison ● Patching ● Ref Git - Reference (git-scm.com)
  • 4. Version Control Systems ❏ Easily Management collaboration on a project by avoiding frustration of swapping files. ❏ Ability to have unlimited number of developers working on the same code base. ❏ Easily revert back to your files if something happened. ➢ Centralized Version Control Systems ➢ Distributed Version COntrol SYstems
  • 5. Centralized Version Control Systems ❏ These systems (such as CVS, Subversion, and Perforce) have a single server that contains all the versioned files, and a number of clients that check out files from that central place ❏ Everyone knows to a certain degree what everyone else on the project is doing.
  • 6. Distributed Version Control Systems ❏ In a DVCS, clients don’t just check out the latest snapshot of the files; rather, they fully mirror the repository, including its full history. ❏ Every clone is really a full backup of all the data.
  • 7. What is GIT? ● GIT is free and open source distributed system with the emphasis on speed and data integrity. ● Git thinks about its data more like a stream of snapshots.
  • 8. Setup Git? ❏ Download git from Git - Downloads (git-scm.com) Setup the download file ❏ To check the version git --version ❏ To View all the Settings ❏ To Change your identify ❏ To change default branch Name
  • 9. Creating Project? ❏ To init the project git init ❏ To add all files git add . ❏ To commit the files git commit -m “Palash: Project init” ❏ To push the changes in github git remote add origin <repo-url> ❏ To push code git push origin master ❏ To clone the repository git clone <repo-url>
  • 11. GIT State Operation? ❏ There are 3 states in git (Modified, Staged, Committed) ❏ Modified means that you have changed the file but have not committed it to your database yet. ❏ Staged means that you have marked a modified file in its current version to go into your next commit snapshot. ❏ Committed means that the data is safely stored in your local database.
  • 13. Basic Command ❏ ADD: To add file git add <fileName> git add . ❏ STATUS: To show the status git status -s short, -b branch, –show-stash, –long ❏ DIFF: To show the diff git diff ❏ COMMIT: To commit git commit -m <Message> ❏ NOTES: To add the notes git notes add -m 'Tested-by: Palash' <commit Ref> To show notes git show -s <commit ref> ❏ RESTORE: To restore the files git restore hello.c ❏ RESET: Reset current HEAD git reset --hard HEAD
  • 14. Branching & Merging ❏ BRANCH: To show all branch git branch -a To create branch git branch dev To Delete branch git branch -d dev, remote git push origin -d dev ❏ CHECKOUT: To checkout git checkout <branchname> ❏ MERGE: To merge git merge <branchName>, git merge origin/staging ❏ MERGETOOL: To resolve the conflict git mergetool ❏ LOG: To show logs git log ❏ STASH : To changes in a dirty working directory git stash ❏ TAG: Create, list, delete or verify a tag object signed with GPG git tag test ❏ WORK TREE: Reset current HEAD git reset --hard HEAD
  • 15. Sharing and Updating Projects ❏ FETCH: To download objects and refs from the repository git fetch -a ❏ PULL: Fetch from and integrate with another repository or a local branch git pull origin <branchname> ❏ PUSH: Update remote refs along with associated objects git push origin <branch> ❏ REMOTE: Manage set of tracked repositories git remote ❏ SUBMODULE: Initialize, update or inspect submodules git submodule add https://github.com/chaconinc/DbConnector
  • 16. Inspection & Comparison ❏ SHOW: To Show various types of objects git show ❏ LOG: Fetch from and integrate with another repository or a local branch git log ❏ DIFF: Show changes between commits, commit and working tree, etc git diff ❏ DIFFTOOL: Show changes using common diff tools git difftool ❏ SHORTLOG: Summarize git log output git shortlog
  • 17. Visual Studio Git Features ❏ Show details in Demo
  • 18. Be a professional, care about your code Thank You!

Editor's Notes