SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
TRAINING
SESSION ON GIT
AND GITHUB
A developer’s best friend
Agenda
WHAT IS GIT?
WHAT IS GITHUB?
INSTALLATION OF GIT
CONFIGURING GIT
CONNECTING GIT WITH
GITHUB
GIT/ GITHUB WORKFLOW
PULL AND PUSH
BRANCHING
MERGING AND REBASING
FORKING
EXTENSIVE FEATURES OF
GITHUB
What is Git?
Version Control System
Allows you to see changes
you make to your code
Revert any change to your
code
NOT GITHUB!!!
BACK TO AGENDA PAGE
So then, what
is Github?
Github.com is a website that
hosts your repositories
Sharing of codebases among
teams to easily fork or clone
repos to a local machine
Sharing of codebases among
teams to easily fork or clone
repos to a local machine
Configuring git
BACK TO AGENDA PAGE
To fix add the desired value in
quotes after the command
BACK TO AGENDA PAGE
Git Workflow
master 1 master 2
final
master 3
branch
merge
feature branch
merge
BACK TO AGENDA PAGE
Connecting git
with Github
From your project directory, run `git init` to
initialize a git repository
Go to Github, and create a new repository with
the name of your project.
Follow the instructions on Github to connect
your initialized git repository to the remote
server on Github.
*Please Note: you must have files in your
project directory to commit in order to push
anything to your remote server
Creating New Repository
BACK TO AGENDA PAGE
In the upper-right corner of any page, use the drop-down menu, and select New
repository.
Optional, if you have a template select one.
Type any repository name
Optional, any description
Choose Public or Private (public preferred)
Optional, initialize Readme.md
Click on Create repository
1.
2.
3.
4.
5.
6.
7.
Add changes
BACK TO AGENDA PAGE
Commit changes
BACK TO AGENDA PAGE
Cloning in git
BACK TO AGENDA PAGE
Push/Pull changes
BACK TO AGENDA PAGE
Branching in git
BACK TO AGENDA PAGE
Logging in git
BACK TO AGENDA PAGE
Conflict merging
BACK TO AGENDA PAGE
Github Code
BACK TO AGENDA PAGE
Issues
Pull requests
Projects tab
Features in Github
Introduction to git and github.pdf

Contenu connexe

Similaire à Introduction to git and github.pdf

introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
BruceLee275640
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
uzair
 

Similaire à Introduction to git and github.pdf (20)

Using Git to Organize Your Project
Using Git to Organize Your ProjectUsing Git to Organize Your Project
Using Git to Organize Your Project
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
 
A crash course on git as version control system and GitHub
A crash course on git as version control system and GitHubA crash course on git as version control system and GitHub
A crash course on git as version control system and GitHub
 
git & github.pdf
git & github.pdfgit & github.pdf
git & github.pdf
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
Using Github for DSpace development
Using Github for DSpace developmentUsing Github for DSpace development
Using Github for DSpace development
 
Hacktoberfest GDSC BBBDITM.pptx
Hacktoberfest GDSC BBBDITM.pptxHacktoberfest GDSC BBBDITM.pptx
Hacktoberfest GDSC BBBDITM.pptx
 
Github
GithubGithub
Github
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Git, GitHub and Open Source
Git, GitHub and Open SourceGit, GitHub and Open Source
Git, GitHub and Open Source
 
GITHUB Integration
GITHUB IntegrationGITHUB Integration
GITHUB Integration
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
 
Github Case Study By Amil Ali
Github Case Study By Amil AliGithub Case Study By Amil Ali
Github Case Study By Amil Ali
 
Git overview
Git overviewGit overview
Git overview
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
 
Git and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slideGit and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slide
 

Dernier

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 

Dernier (20)

Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, Ocado
 

Introduction to git and github.pdf

  • 1. TRAINING SESSION ON GIT AND GITHUB A developer’s best friend
  • 2. Agenda WHAT IS GIT? WHAT IS GITHUB? INSTALLATION OF GIT CONFIGURING GIT CONNECTING GIT WITH GITHUB GIT/ GITHUB WORKFLOW PULL AND PUSH BRANCHING MERGING AND REBASING FORKING EXTENSIVE FEATURES OF GITHUB
  • 3. What is Git? Version Control System Allows you to see changes you make to your code Revert any change to your code NOT GITHUB!!!
  • 4. BACK TO AGENDA PAGE So then, what is Github? Github.com is a website that hosts your repositories Sharing of codebases among teams to easily fork or clone repos to a local machine Sharing of codebases among teams to easily fork or clone repos to a local machine
  • 6. To fix add the desired value in quotes after the command BACK TO AGENDA PAGE
  • 7. Git Workflow master 1 master 2 final master 3 branch merge feature branch merge
  • 8. BACK TO AGENDA PAGE Connecting git with Github From your project directory, run `git init` to initialize a git repository Go to Github, and create a new repository with the name of your project. Follow the instructions on Github to connect your initialized git repository to the remote server on Github. *Please Note: you must have files in your project directory to commit in order to push anything to your remote server
  • 9. Creating New Repository BACK TO AGENDA PAGE In the upper-right corner of any page, use the drop-down menu, and select New repository. Optional, if you have a template select one. Type any repository name Optional, any description Choose Public or Private (public preferred) Optional, initialize Readme.md Click on Create repository 1. 2. 3. 4. 5. 6. 7.
  • 10. Add changes BACK TO AGENDA PAGE
  • 11. Commit changes BACK TO AGENDA PAGE
  • 12. Cloning in git BACK TO AGENDA PAGE
  • 14. Branching in git BACK TO AGENDA PAGE
  • 15. Logging in git BACK TO AGENDA PAGE
  • 17. Github Code BACK TO AGENDA PAGE Issues Pull requests Projects tab Features in Github