SlideShare une entreprise Scribd logo
1  sur  9
GIT &
GITHUB
Kickstart your Open Source Journey this October
VERSION CONTROL
My project Final project Final project - new
feature
Final Project -
another feature
Final-Final project Fully-final
project
HOW DOES GIT HELP IN
VERSION CONTROL
New feature
Final project
(Version 2.0)
Final project
(Version 2.2)
My project
(Version 1.0)
Final project
(Version 2.1)
Another
feature Final-final project
(Version 3.0)
Git just tracks these
changes
BASIC GIT COMMANDS
git init To start tracking changes
To track changes in
<filename>
To save the changes in a
checkpoint
git add <filename>
git commit -m “message”
git status To check the status of changes
git log To see all saved checkpoints
git checkout
<hash_value>
To return to the checkpoint
BRANCHES AND HEAD
● All commits live on a branch.
● A repo can contain many
branches.
● The main branch is usually
called ‘master’.
● ‘HEAD’ refers to the most
recent commit on a branch.
Beginning of
MASTER
branch
BRANCH-1
made from
master
BRANCH-2
made from
master
GITHUB - THE BASICS
CREATE
ISSUES
OPEN SOURCE
GITHUB
GitHub is a provider of Internet hosting for
open source software development and
version control using Git.
COLLABORATION
REMOTE
REPOSITORIES
PULL
REQUESTS
HOW TO CONTRIBUTE
INITIALIZE
REPOSITORY
First step is to
create your repo by
cloning or adding a
remote and initialize
it with git
MAKE YOUR
CHANGES
COMMIT
TRACK
YOUR
CHANGES
MAY 30
Next step is to
stage the edits you
made for git to track
the changes
Lastly, push all the
commits you made
to your forked repo
on GitHub
Save your progress
by committing
which acts as a
checkpoint
Then make suitable
edits in your branch
PUSH IT
CREATE YOUR
BRANCH
Create your branch
for testing changes
you made
GIT COMMANDS FOR
CONTRIBUTION
git clone “url” To clone a project to local device
To start tracking changes
To create and move to the new
branch
git init
git checkout -b <branch_name>
git commit -m “message” To save all of the changes
git push -u origin <branch_name> To push current code to remote
git add . To track all changes in all files
x
PSoc - IIIT Bh
GDSC - IIIT Bh

Contenu connexe

Tendances

Tendances (20)

Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Github
GithubGithub
Github
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Github
GithubGithub
Github
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
Git, GitHub and Open Source
Git, GitHub and Open SourceGit, GitHub and Open Source
Git, GitHub and Open Source
 
Git & Github
Git & GithubGit & Github
Git & Github
 
Git basic
Git basicGit basic
Git basic
 
Git and GitHub workflows
Git and GitHub workflowsGit and GitHub workflows
Git and GitHub workflows
 
Git presentation
Git presentationGit presentation
Git presentation
 
Github Case Study By Amil Ali
Github Case Study By Amil AliGithub Case Study By Amil Ali
Github Case Study By Amil Ali
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 

Similaire à HacktoberFest-Git&GitHub

Git tech talk
Git tech talkGit tech talk
Git tech talk
razasayed
 

Similaire à HacktoberFest-Git&GitHub (20)

Git tech talk
Git tech talkGit tech talk
Git tech talk
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
 
Git Primer
Git PrimerGit Primer
Git Primer
 
The Fundamentals of Git
The Fundamentals of GitThe Fundamentals of Git
The Fundamentals of Git
 
Git introduction
Git introductionGit introduction
Git introduction
 
Introduction to Git.pptx
Introduction to Git.pptxIntroduction to Git.pptx
Introduction to Git.pptx
 
Mastering git - Workflow
Mastering git - WorkflowMastering git - Workflow
Mastering git - Workflow
 
Git cheat-sheet
Git cheat-sheetGit cheat-sheet
Git cheat-sheet
 
Git cheat-sheet 2021
Git cheat-sheet 2021Git cheat-sheet 2021
Git cheat-sheet 2021
 
Pro git - grasping it conceptually
Pro git - grasping it conceptuallyPro git - grasping it conceptually
Pro git - grasping it conceptually
 
Essential Git and Github commands
Essential Git and Github commandsEssential Git and Github commands
Essential Git and Github commands
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
 
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
 
Version control
Version controlVersion control
Version control
 
Git and git flow
Git and git flowGit and git flow
Git and git flow
 
Linux GIT commands
Linux GIT commandsLinux GIT commands
Linux GIT commands
 
Gn unify git
Gn unify gitGn unify git
Gn unify git
 
Git Concepts, Commands and Connectivity
Git Concepts, Commands and ConnectivityGit Concepts, Commands and Connectivity
Git Concepts, Commands and Connectivity
 
Git development workflow
Git development workflowGit development workflow
Git development workflow
 
Git real slides
Git real slidesGit real slides
Git real slides
 

Dernier

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Dernier (20)

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 

HacktoberFest-Git&GitHub

  • 1. GIT & GITHUB Kickstart your Open Source Journey this October
  • 2. VERSION CONTROL My project Final project Final project - new feature Final Project - another feature Final-Final project Fully-final project
  • 3. HOW DOES GIT HELP IN VERSION CONTROL New feature Final project (Version 2.0) Final project (Version 2.2) My project (Version 1.0) Final project (Version 2.1) Another feature Final-final project (Version 3.0) Git just tracks these changes
  • 4. BASIC GIT COMMANDS git init To start tracking changes To track changes in <filename> To save the changes in a checkpoint git add <filename> git commit -m “message” git status To check the status of changes git log To see all saved checkpoints git checkout <hash_value> To return to the checkpoint
  • 5. BRANCHES AND HEAD ● All commits live on a branch. ● A repo can contain many branches. ● The main branch is usually called ‘master’. ● ‘HEAD’ refers to the most recent commit on a branch. Beginning of MASTER branch BRANCH-1 made from master BRANCH-2 made from master
  • 6. GITHUB - THE BASICS CREATE ISSUES OPEN SOURCE GITHUB GitHub is a provider of Internet hosting for open source software development and version control using Git. COLLABORATION REMOTE REPOSITORIES PULL REQUESTS
  • 7. HOW TO CONTRIBUTE INITIALIZE REPOSITORY First step is to create your repo by cloning or adding a remote and initialize it with git MAKE YOUR CHANGES COMMIT TRACK YOUR CHANGES MAY 30 Next step is to stage the edits you made for git to track the changes Lastly, push all the commits you made to your forked repo on GitHub Save your progress by committing which acts as a checkpoint Then make suitable edits in your branch PUSH IT CREATE YOUR BRANCH Create your branch for testing changes you made
  • 8. GIT COMMANDS FOR CONTRIBUTION git clone “url” To clone a project to local device To start tracking changes To create and move to the new branch git init git checkout -b <branch_name> git commit -m “message” To save all of the changes git push -u origin <branch_name> To push current code to remote git add . To track all changes in all files
  • 9. x PSoc - IIIT Bh GDSC - IIIT Bh