SlideShare a Scribd company logo
Introduction to Git
Understanding Version Control and Git's Uses
What is Git?
• Git is a distributed version control system used to track
changes in source code during software development. It
allows multiple developers to work on the same project
simultaneously, without interfering with each other's work.
How Git Works
• Git tracks changes through commits. Each commit contains
a snapshot of the project files at a given point in time. Git
uses a repository (repo) to store these commits, and these
repositories can be local (on your computer) or remote (on a
server like GitHub).
When to Use Git?
• Git is essential when working on collaborative projects. It
ensures that multiple people can work on the same
codebase without conflict. Git also helps track and revert
code changes, so it's useful for version control, auditing, and
team collaboration.
Basic Git Commands
• Here are the basic Git commands:nn1. git init - Initialize a
new Git repositoryn2. git clone <repo_url> - Clone a
repository from a remote locationn3. git status - Check the
status of changesn4. git add <file_name> - Stage changes
for commitn5. git commit -m 'message' - Commit staged
changes with a messagen6. git push - Push changes to a
remote repositoryn7. git pull - Pull the latest changes from
a remote repository
Advanced Git Commands
• Advanced commands include:nn1. git branch - List, create,
or delete branchesn2. git checkout <branch> - Switch to a
different branchn3. git merge <branch> - Merge changes
from one branch into anothern4. git rebase - Reapply
commits on top of another base tipn5. git stash -
Temporarily saves changes without committing
Git Branching
• Branching in Git allows you to work on different versions of
the code simultaneously. You can create a new branch for
new features or bug fixes, keeping the main branch stable
while you're working on changes.
Collaboration in Git
• Git enables collaboration through features like branching,
merging, and pull requests. Multiple developers can clone a
repository, create branches for their work, and push their
changes to the main repository for review and merging.
GitHub and Remote Repositories
• GitHub is a popular platform for hosting Git repositories. It
allows you to store code online, collaborate with other
developers, and manage issues and pull requests. To work
with remote repositories, use commands like git clone, git
push, and git pull.
Conclusion
• Git is a powerful tool for version control and collaboration in
software development. Mastering Git commands and
workflows is essential for efficient project management and
collaboration in modern software development.

More Related Content

Similar to Git and Github and how can we leverage in Daily Coding (20)

Introduction to git
Introduction to gitIntroduction to git
Introduction to git
Nguyen Van Hung
 
Git introduction for Beginners
Git introduction for BeginnersGit introduction for Beginners
Git introduction for Beginners
MortezaTaghaddomi
 
Git GitHub jsdbcghsvchjsbcmshg cv ddcsd cjhsbdcjhbdscbc gs cgsvcsbcdbdkjcbsdk...
Git GitHub jsdbcghsvchjsbcmshg cv ddcsd cjhsbdcjhbdscbc gs cgsvcsbcdbdkjcbsdk...Git GitHub jsdbcghsvchjsbcmshg cv ddcsd cjhsbdcjhbdscbc gs cgsvcsbcdbdkjcbsdk...
Git GitHub jsdbcghsvchjsbcmshg cv ddcsd cjhsbdcjhbdscbc gs cgsvcsbcdbdkjcbsdk...
saurabhpandeychp1
 
Data science Git management
Data science Git managementData science Git management
Data science Git management
Arindam Banerjee
 
Git and GitHub Info Session
Git and GitHub Info SessionGit and GitHub Info Session
Git and GitHub Info Session
SawanBhattacharya
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
Eshaan35
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
Sameera Wijesekara
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
Robert Lee-Cann
 
Learn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levelsLearn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levels
Gorav Singal
 
Version Control System Branching Strategies.pptx
Version Control System Branching Strategies.pptxVersion Control System Branching Strategies.pptx
Version Control System Branching Strategies.pptx
daisyloumontante1
 
tech winter break workshop on git &git hub.pptx
tech winter break workshop on git &git hub.pptxtech winter break workshop on git &git hub.pptx
tech winter break workshop on git &git hub.pptx
ashishraulin
 
Git workshop
Git workshopGit workshop
Git workshop
Reslan Al Tinawi
 
Git presentation
Git presentationGit presentation
Git presentation
Sai Kumar Satapathy
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
Krunal Doshi
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
Venkat Malladi
 
Git 101
Git 101Git 101
Git 101
jayrparro
 
O365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van RousseltO365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van Rousselt
NCCOMMS
 
GIT INTRODUCTION
GIT INTRODUCTIONGIT INTRODUCTION
GIT INTRODUCTION
MohanRaviRohitth
 
Git and GitHub Presentation of GDG on Campus UNSTPB
Git and GitHub Presentation of GDG on Campus UNSTPBGit and GitHub Presentation of GDG on Campus UNSTPB
Git and GitHub Presentation of GDG on Campus UNSTPB
AmaraCostachiu
 
Github
GithubGithub
Github
MeetPatel710
 
Git introduction for Beginners
Git introduction for BeginnersGit introduction for Beginners
Git introduction for Beginners
MortezaTaghaddomi
 
Git GitHub jsdbcghsvchjsbcmshg cv ddcsd cjhsbdcjhbdscbc gs cgsvcsbcdbdkjcbsdk...
Git GitHub jsdbcghsvchjsbcmshg cv ddcsd cjhsbdcjhbdscbc gs cgsvcsbcdbdkjcbsdk...Git GitHub jsdbcghsvchjsbcmshg cv ddcsd cjhsbdcjhbdscbc gs cgsvcsbcdbdkjcbsdk...
Git GitHub jsdbcghsvchjsbcmshg cv ddcsd cjhsbdcjhbdscbc gs cgsvcsbcdbdkjcbsdk...
saurabhpandeychp1
 
Data science Git management
Data science Git managementData science Git management
Data science Git management
Arindam Banerjee
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
Eshaan35
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
Robert Lee-Cann
 
Learn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levelsLearn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levels
Gorav Singal
 
Version Control System Branching Strategies.pptx
Version Control System Branching Strategies.pptxVersion Control System Branching Strategies.pptx
Version Control System Branching Strategies.pptx
daisyloumontante1
 
tech winter break workshop on git &git hub.pptx
tech winter break workshop on git &git hub.pptxtech winter break workshop on git &git hub.pptx
tech winter break workshop on git &git hub.pptx
ashishraulin
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
Krunal Doshi
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
Venkat Malladi
 
O365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van RousseltO365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van Rousselt
NCCOMMS
 
Git and GitHub Presentation of GDG on Campus UNSTPB
Git and GitHub Presentation of GDG on Campus UNSTPBGit and GitHub Presentation of GDG on Campus UNSTPB
Git and GitHub Presentation of GDG on Campus UNSTPB
AmaraCostachiu
 

Recently uploaded (20)

Power BI Jobs in Jaipur Unlock Your Career in the Booming Data Analytics Sect...
Power BI Jobs in Jaipur Unlock Your Career in the Booming Data Analytics Sect...Power BI Jobs in Jaipur Unlock Your Career in the Booming Data Analytics Sect...
Power BI Jobs in Jaipur Unlock Your Career in the Booming Data Analytics Sect...
vinay salarite
 
1- Rules of Tajweed Qalqalah_Letters.pptx
1- Rules of Tajweed Qalqalah_Letters.pptx1- Rules of Tajweed Qalqalah_Letters.pptx
1- Rules of Tajweed Qalqalah_Letters.pptx
sammk2023
 
AUTOMATED GENERATIVE AI FOR EDUCATION.pptx
AUTOMATED GENERATIVE AI FOR EDUCATION.pptxAUTOMATED GENERATIVE AI FOR EDUCATION.pptx
AUTOMATED GENERATIVE AI FOR EDUCATION.pptx
mjayarmn158
 
Final_CRMI_Logbook helps one get better_CM.pdf
Final_CRMI_Logbook helps one get better_CM.pdfFinal_CRMI_Logbook helps one get better_CM.pdf
Final_CRMI_Logbook helps one get better_CM.pdf
Aakash403999
 
The Dual Expertise of Manoel Gil Da Silva in Finance and Commerce
The Dual Expertise of Manoel Gil Da Silva in Finance and CommerceThe Dual Expertise of Manoel Gil Da Silva in Finance and Commerce
The Dual Expertise of Manoel Gil Da Silva in Finance and Commerce
Manoel Gil Da Silva
 
exploring a career in digital marketing.
exploring a career in digital marketing.exploring a career in digital marketing.
exploring a career in digital marketing.
zahranasar7001
 
MERI-Cultivating-Global-Professionals.pdf
MERI-Cultivating-Global-Professionals.pdfMERI-Cultivating-Global-Professionals.pdf
MERI-Cultivating-Global-Professionals.pdf
anchal600585
 
medical coding courses in sao tome and principe.pdf
medical coding courses in sao tome and principe.pdfmedical coding courses in sao tome and principe.pdf
medical coding courses in sao tome and principe.pdf
stskills iim
 
HOW HIRE A HACKER TO RECOVER STOLEN BTC/ ETH/ USDT. CONTACT FASTFUND RECOVERY.
HOW HIRE A HACKER TO RECOVER STOLEN BTC/ ETH/ USDT. CONTACT FASTFUND RECOVERY.HOW HIRE A HACKER TO RECOVER STOLEN BTC/ ETH/ USDT. CONTACT FASTFUND RECOVERY.
HOW HIRE A HACKER TO RECOVER STOLEN BTC/ ETH/ USDT. CONTACT FASTFUND RECOVERY.
brittneybooker65
 
The Role of HR in Optimizing Tech Supply Chains.pdf
The Role of HR in Optimizing Tech Supply Chains.pdfThe Role of HR in Optimizing Tech Supply Chains.pdf
The Role of HR in Optimizing Tech Supply Chains.pdf
Luis Herrera
 
spinalandepiduralanaesthesia-231003080147-d2091ad5 (5).pdf
spinalandepiduralanaesthesia-231003080147-d2091ad5 (5).pdfspinalandepiduralanaesthesia-231003080147-d2091ad5 (5).pdf
spinalandepiduralanaesthesia-231003080147-d2091ad5 (5).pdf
SrujanaAryasomayajul1
 
Data’s Not a Dirty Word- Solutions for Stewardship, Stories, and Succession P...
Data’s Not a Dirty Word- Solutions for Stewardship, Stories, and Succession P...Data’s Not a Dirty Word- Solutions for Stewardship, Stories, and Succession P...
Data’s Not a Dirty Word- Solutions for Stewardship, Stories, and Succession P...
logosou
 
Six Sigma Wings for Heros - Lean Six Sigma Coaching Excellence Medal
Six Sigma Wings for Heros - Lean Six Sigma Coaching Excellence MedalSix Sigma Wings for Heros - Lean Six Sigma Coaching Excellence Medal
Six Sigma Wings for Heros - Lean Six Sigma Coaching Excellence Medal
Neil Beyersdorf - MSES | CLSSMBB | Prosci OCM
 
URS CORTES MELJUN 2025 Application Form RESUME and CREDENTIALS 60 pages
URS CORTES  MELJUN 2025 Application Form RESUME and CREDENTIALS 60 pagesURS CORTES  MELJUN 2025 Application Form RESUME and CREDENTIALS 60 pages
URS CORTES MELJUN 2025 Application Form RESUME and CREDENTIALS 60 pages
MELJUN CORTES
 
Judgement seat of Christ for the body of Christ that will happen anytime any ...
Judgement seat of Christ for the body of Christ that will happen anytime any ...Judgement seat of Christ for the body of Christ that will happen anytime any ...
Judgement seat of Christ for the body of Christ that will happen anytime any ...
RYANDelosReyes23
 
WilliamMichaelReid_ProfessionalResume&Bio_June-04-2025.docx
WilliamMichaelReid_ProfessionalResume&Bio_June-04-2025.docxWilliamMichaelReid_ProfessionalResume&Bio_June-04-2025.docx
WilliamMichaelReid_ProfessionalResume&Bio_June-04-2025.docx
Wm. Michael Reid
 
ECONOMICS (6)1.pdfbjidshdfhwefnjkwfbjkjlwflkwefjk
ECONOMICS (6)1.pdfbjidshdfhwefnjkwfbjkjlwflkwefjkECONOMICS (6)1.pdfbjidshdfhwefnjkwfbjkjlwflkwefjk
ECONOMICS (6)1.pdfbjidshdfhwefnjkwfbjkjlwflkwefjk
jainishita009
 
CDR Report for Biomedical Engineer | cdrreport.com
CDR Report for Biomedical Engineer | cdrreport.comCDR Report for Biomedical Engineer | cdrreport.com
CDR Report for Biomedical Engineer | cdrreport.com
CDRReport
 
Failure_of_Composite_Restorations by dr ahmed.pptx
Failure_of_Composite_Restorations by dr ahmed.pptxFailure_of_Composite_Restorations by dr ahmed.pptx
Failure_of_Composite_Restorations by dr ahmed.pptx
razak5free
 
Sociology 1 unit introduction chapter important topics
Sociology 1 unit introduction chapter important topicsSociology 1 unit introduction chapter important topics
Sociology 1 unit introduction chapter important topics
sahalyaseen88
 
Power BI Jobs in Jaipur Unlock Your Career in the Booming Data Analytics Sect...
Power BI Jobs in Jaipur Unlock Your Career in the Booming Data Analytics Sect...Power BI Jobs in Jaipur Unlock Your Career in the Booming Data Analytics Sect...
Power BI Jobs in Jaipur Unlock Your Career in the Booming Data Analytics Sect...
vinay salarite
 
1- Rules of Tajweed Qalqalah_Letters.pptx
1- Rules of Tajweed Qalqalah_Letters.pptx1- Rules of Tajweed Qalqalah_Letters.pptx
1- Rules of Tajweed Qalqalah_Letters.pptx
sammk2023
 
AUTOMATED GENERATIVE AI FOR EDUCATION.pptx
AUTOMATED GENERATIVE AI FOR EDUCATION.pptxAUTOMATED GENERATIVE AI FOR EDUCATION.pptx
AUTOMATED GENERATIVE AI FOR EDUCATION.pptx
mjayarmn158
 
Final_CRMI_Logbook helps one get better_CM.pdf
Final_CRMI_Logbook helps one get better_CM.pdfFinal_CRMI_Logbook helps one get better_CM.pdf
Final_CRMI_Logbook helps one get better_CM.pdf
Aakash403999
 
The Dual Expertise of Manoel Gil Da Silva in Finance and Commerce
The Dual Expertise of Manoel Gil Da Silva in Finance and CommerceThe Dual Expertise of Manoel Gil Da Silva in Finance and Commerce
The Dual Expertise of Manoel Gil Da Silva in Finance and Commerce
Manoel Gil Da Silva
 
exploring a career in digital marketing.
exploring a career in digital marketing.exploring a career in digital marketing.
exploring a career in digital marketing.
zahranasar7001
 
MERI-Cultivating-Global-Professionals.pdf
MERI-Cultivating-Global-Professionals.pdfMERI-Cultivating-Global-Professionals.pdf
MERI-Cultivating-Global-Professionals.pdf
anchal600585
 
medical coding courses in sao tome and principe.pdf
medical coding courses in sao tome and principe.pdfmedical coding courses in sao tome and principe.pdf
medical coding courses in sao tome and principe.pdf
stskills iim
 
HOW HIRE A HACKER TO RECOVER STOLEN BTC/ ETH/ USDT. CONTACT FASTFUND RECOVERY.
HOW HIRE A HACKER TO RECOVER STOLEN BTC/ ETH/ USDT. CONTACT FASTFUND RECOVERY.HOW HIRE A HACKER TO RECOVER STOLEN BTC/ ETH/ USDT. CONTACT FASTFUND RECOVERY.
HOW HIRE A HACKER TO RECOVER STOLEN BTC/ ETH/ USDT. CONTACT FASTFUND RECOVERY.
brittneybooker65
 
The Role of HR in Optimizing Tech Supply Chains.pdf
The Role of HR in Optimizing Tech Supply Chains.pdfThe Role of HR in Optimizing Tech Supply Chains.pdf
The Role of HR in Optimizing Tech Supply Chains.pdf
Luis Herrera
 
spinalandepiduralanaesthesia-231003080147-d2091ad5 (5).pdf
spinalandepiduralanaesthesia-231003080147-d2091ad5 (5).pdfspinalandepiduralanaesthesia-231003080147-d2091ad5 (5).pdf
spinalandepiduralanaesthesia-231003080147-d2091ad5 (5).pdf
SrujanaAryasomayajul1
 
Data’s Not a Dirty Word- Solutions for Stewardship, Stories, and Succession P...
Data’s Not a Dirty Word- Solutions for Stewardship, Stories, and Succession P...Data’s Not a Dirty Word- Solutions for Stewardship, Stories, and Succession P...
Data’s Not a Dirty Word- Solutions for Stewardship, Stories, and Succession P...
logosou
 
URS CORTES MELJUN 2025 Application Form RESUME and CREDENTIALS 60 pages
URS CORTES  MELJUN 2025 Application Form RESUME and CREDENTIALS 60 pagesURS CORTES  MELJUN 2025 Application Form RESUME and CREDENTIALS 60 pages
URS CORTES MELJUN 2025 Application Form RESUME and CREDENTIALS 60 pages
MELJUN CORTES
 
Judgement seat of Christ for the body of Christ that will happen anytime any ...
Judgement seat of Christ for the body of Christ that will happen anytime any ...Judgement seat of Christ for the body of Christ that will happen anytime any ...
Judgement seat of Christ for the body of Christ that will happen anytime any ...
RYANDelosReyes23
 
WilliamMichaelReid_ProfessionalResume&Bio_June-04-2025.docx
WilliamMichaelReid_ProfessionalResume&Bio_June-04-2025.docxWilliamMichaelReid_ProfessionalResume&Bio_June-04-2025.docx
WilliamMichaelReid_ProfessionalResume&Bio_June-04-2025.docx
Wm. Michael Reid
 
ECONOMICS (6)1.pdfbjidshdfhwefnjkwfbjkjlwflkwefjk
ECONOMICS (6)1.pdfbjidshdfhwefnjkwfbjkjlwflkwefjkECONOMICS (6)1.pdfbjidshdfhwefnjkwfbjkjlwflkwefjk
ECONOMICS (6)1.pdfbjidshdfhwefnjkwfbjkjlwflkwefjk
jainishita009
 
CDR Report for Biomedical Engineer | cdrreport.com
CDR Report for Biomedical Engineer | cdrreport.comCDR Report for Biomedical Engineer | cdrreport.com
CDR Report for Biomedical Engineer | cdrreport.com
CDRReport
 
Failure_of_Composite_Restorations by dr ahmed.pptx
Failure_of_Composite_Restorations by dr ahmed.pptxFailure_of_Composite_Restorations by dr ahmed.pptx
Failure_of_Composite_Restorations by dr ahmed.pptx
razak5free
 
Sociology 1 unit introduction chapter important topics
Sociology 1 unit introduction chapter important topicsSociology 1 unit introduction chapter important topics
Sociology 1 unit introduction chapter important topics
sahalyaseen88
 
Ad

Git and Github and how can we leverage in Daily Coding

  • 1. Introduction to Git Understanding Version Control and Git's Uses
  • 2. What is Git? • Git is a distributed version control system used to track changes in source code during software development. It allows multiple developers to work on the same project simultaneously, without interfering with each other's work.
  • 3. How Git Works • Git tracks changes through commits. Each commit contains a snapshot of the project files at a given point in time. Git uses a repository (repo) to store these commits, and these repositories can be local (on your computer) or remote (on a server like GitHub).
  • 4. When to Use Git? • Git is essential when working on collaborative projects. It ensures that multiple people can work on the same codebase without conflict. Git also helps track and revert code changes, so it's useful for version control, auditing, and team collaboration.
  • 5. Basic Git Commands • Here are the basic Git commands:nn1. git init - Initialize a new Git repositoryn2. git clone <repo_url> - Clone a repository from a remote locationn3. git status - Check the status of changesn4. git add <file_name> - Stage changes for commitn5. git commit -m 'message' - Commit staged changes with a messagen6. git push - Push changes to a remote repositoryn7. git pull - Pull the latest changes from a remote repository
  • 6. Advanced Git Commands • Advanced commands include:nn1. git branch - List, create, or delete branchesn2. git checkout <branch> - Switch to a different branchn3. git merge <branch> - Merge changes from one branch into anothern4. git rebase - Reapply commits on top of another base tipn5. git stash - Temporarily saves changes without committing
  • 7. Git Branching • Branching in Git allows you to work on different versions of the code simultaneously. You can create a new branch for new features or bug fixes, keeping the main branch stable while you're working on changes.
  • 8. Collaboration in Git • Git enables collaboration through features like branching, merging, and pull requests. Multiple developers can clone a repository, create branches for their work, and push their changes to the main repository for review and merging.
  • 9. GitHub and Remote Repositories • GitHub is a popular platform for hosting Git repositories. It allows you to store code online, collaborate with other developers, and manage issues and pull requests. To work with remote repositories, use commands like git clone, git push, and git pull.
  • 10. Conclusion • Git is a powerful tool for version control and collaboration in software development. Mastering Git commands and workflows is essential for efficient project management and collaboration in modern software development.