SlideShare a Scribd company logo
1 of 10
Download to read offline
GitHub Workshop 2.0
Krishna Moni Das
Software tool for management
development progress
/
version control
git
Github
Cloud hosting platform for git
projects
Collection of codes,
files, folders related to
the project organized
in one folder like
structure
repository
clone -> copy repo to current
working directory
add -> track changes of the file or ā€œ.ā€ to
track all files
commit -> save the changes
push -> upload the commits
pull -> download the changes (opposite of push)
init -> initialize the repository
Branches are indepedent flow of development for
collaborations, feature and bug-fixing
git branch -> to check current branch
git checkout -b ā€œbranch_nameā€ -> to
create a branch and switch to it
git checkout ā€œbranch_nameā€ -> to
switch to a branch
Undoing in git
git branch -d ā€œbranch nameā€
git reset ā€œfile_nameā€
git reset HEAD~1 (for last commit)
*git log -> to see past commits and their hash
id
fork the repo from GDSC-AdtU/Intro-to-github
make a local directory
go to terminal
clone the repo from your account into the directory
$git clone "your forked repo link"
$git init
$git config --global user.name "your-user-name"
$git config --global user.email "username@mail.com"
$cd "to-the-cloned-folder"
git checkout -b "your-branch-name"
*make-your-changes to the file
git add "modified-file-name"
git commit -m "added your-name"
git remote add origin "your forked repo link"
git remote add upstream "original repo link"
git push origin -u "your-branch-name"
go to github user interface and click to "compare and pull
request"
click on "create pull request"
done :)

More Related Content

Similar to Contributing to Open Source with GitHub GDSC

390a gitintro 12au
390a gitintro 12au390a gitintro 12au
390a gitintro 12auNguyen Van Hung
Ā 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubDSC GVP
Ā 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheetJae Nwawe
Ā 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheetleo_priv00
Ā 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheetAdeel Munir
Ā 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheetvartmp
Ā 
Git å…„é—ØäøŽå®žč·µ
Git å…„é—ØäøŽå®žč·µGit å…„é—ØäøŽå®žč·µ
Git å…„é—ØäøŽå®žč·µTerry Wang
Ā 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Brian K. Vagnini
Ā 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github Max Claus Nunes
Ā 
Collaborative development with Git | Workshop
Collaborative development with Git | WorkshopCollaborative development with Git | Workshop
Collaborative development with Git | WorkshopAnuchit Chalothorn
Ā 
Git å…„é—Ø äøŽ å®žč·µ
Git å…„é—Ø äøŽ å®žč·µGit å…„é—Ø äøŽ å®žč·µ
Git å…„é—Ø äøŽ å®žč·µTerry Wang
Ā 
Git 101
Git 101Git 101
Git 101jayrparro
Ā 
HackMTY - GitHub Workshop
HackMTY - GitHub WorkshopHackMTY - GitHub Workshop
HackMTY - GitHub WorkshopLuis Lamadrid
Ā 

Similar to Contributing to Open Source with GitHub GDSC (20)

390a gitintro 12au
390a gitintro 12au390a gitintro 12au
390a gitintro 12au
Ā 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
Ā 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheet
Ā 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheet
Ā 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheet
Ā 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheet
Ā 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheet
Ā 
Git
GitGit
Git
Ā 
Git å…„é—ØäøŽå®žč·µ
Git å…„é—ØäøŽå®žč·µGit å…„é—ØäøŽå®žč·µ
Git å…„é—ØäøŽå®žč·µ
Ā 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
Ā 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Ā 
Collaborative development with Git | Workshop
Collaborative development with Git | WorkshopCollaborative development with Git | Workshop
Collaborative development with Git | Workshop
Ā 
Git and github
Git and githubGit and github
Git and github
Ā 
Git å…„é—Ø äøŽ å®žč·µ
Git å…„é—Ø äøŽ å®žč·µGit å…„é—Ø äøŽ å®žč·µ
Git å…„é—Ø äøŽ å®žč·µ
Ā 
Git
GitGit
Git
Ā 
Git 101
Git 101Git 101
Git 101
Ā 
Git
GitGit
Git
Ā 
Git and Github
Git and GithubGit and Github
Git and Github
Ā 
Git
GitGit
Git
Ā 
HackMTY - GitHub Workshop
HackMTY - GitHub WorkshopHackMTY - GitHub Workshop
HackMTY - GitHub Workshop
Ā 

More from AyanMasood1

CloudFest'24 [ GDSC || Assam down town University ]
CloudFest'24 [ GDSC || Assam down town University ]CloudFest'24 [ GDSC || Assam down town University ]
CloudFest'24 [ GDSC || Assam down town University ]AyanMasood1
Ā 
User Interface / User Experience Design Info Session
User Interface / User Experience Design Info SessionUser Interface / User Experience Design Info Session
User Interface / User Experience Design Info SessionAyanMasood1
Ā 
Google Solution Challenge Info Session GDSC
Google Solution Challenge Info Session GDSCGoogle Solution Challenge Info Session GDSC
Google Solution Challenge Info Session GDSCAyanMasood1
Ā 
Unleash the Magic of Machines: Intro to AI/ML
Unleash the Magic of Machines: Intro to AI/MLUnleash the Magic of Machines: Intro to AI/ML
Unleash the Magic of Machines: Intro to AI/MLAyanMasood1
Ā 
Introduction to Git & Github
Introduction to Git & GithubIntroduction to Git & Github
Introduction to Git & GithubAyanMasood1
Ā 
AdtU Core members Introduction.pptx
AdtU Core members Introduction.pptxAdtU Core members Introduction.pptx
AdtU Core members Introduction.pptxAyanMasood1
Ā 
Cloud Study Jam PPT.pptx
Cloud Study Jam PPT.pptxCloud Study Jam PPT.pptx
Cloud Study Jam PPT.pptxAyanMasood1
Ā 
GDSC Info Session.pdf
GDSC Info Session.pdfGDSC Info Session.pdf
GDSC Info Session.pdfAyanMasood1
Ā 

More from AyanMasood1 (8)

CloudFest'24 [ GDSC || Assam down town University ]
CloudFest'24 [ GDSC || Assam down town University ]CloudFest'24 [ GDSC || Assam down town University ]
CloudFest'24 [ GDSC || Assam down town University ]
Ā 
User Interface / User Experience Design Info Session
User Interface / User Experience Design Info SessionUser Interface / User Experience Design Info Session
User Interface / User Experience Design Info Session
Ā 
Google Solution Challenge Info Session GDSC
Google Solution Challenge Info Session GDSCGoogle Solution Challenge Info Session GDSC
Google Solution Challenge Info Session GDSC
Ā 
Unleash the Magic of Machines: Intro to AI/ML
Unleash the Magic of Machines: Intro to AI/MLUnleash the Magic of Machines: Intro to AI/ML
Unleash the Magic of Machines: Intro to AI/ML
Ā 
Introduction to Git & Github
Introduction to Git & GithubIntroduction to Git & Github
Introduction to Git & Github
Ā 
AdtU Core members Introduction.pptx
AdtU Core members Introduction.pptxAdtU Core members Introduction.pptx
AdtU Core members Introduction.pptx
Ā 
Cloud Study Jam PPT.pptx
Cloud Study Jam PPT.pptxCloud Study Jam PPT.pptx
Cloud Study Jam PPT.pptx
Ā 
GDSC Info Session.pdf
GDSC Info Session.pdfGDSC Info Session.pdf
GDSC Info Session.pdf
Ā 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
Ā 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
Ā 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
Ā 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
Ā 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
Ā 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
Ā 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
Ā 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
Ā 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
Ā 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
Ā 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
Ā 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
Ā 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
Ā 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
Ā 
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø9953056974 Low Rate Call Girls In Saket, Delhi NCR
Ā 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
Ā 
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdfssuser54595a
Ā 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
Ā 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
Ā 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
Ā 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
Ā 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
Ā 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
Ā 
CĆ³digo Creativo y Arte de Software | Unidad 1
CĆ³digo Creativo y Arte de Software | Unidad 1CĆ³digo Creativo y Arte de Software | Unidad 1
CĆ³digo Creativo y Arte de Software | Unidad 1
Ā 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Ā 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
Ā 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
Ā 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
Ā 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Ā 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
Ā 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Ā 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Ā 
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Ā 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
Ā 
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
Ā 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
Ā 
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
Ā 

Contributing to Open Source with GitHub GDSC

  • 2. Software tool for management development progress / version control git
  • 3. Github Cloud hosting platform for git projects
  • 4. Collection of codes, files, folders related to the project organized in one folder like structure repository
  • 5. clone -> copy repo to current working directory add -> track changes of the file or ā€œ.ā€ to track all files commit -> save the changes push -> upload the commits pull -> download the changes (opposite of push) init -> initialize the repository
  • 6. Branches are indepedent flow of development for collaborations, feature and bug-fixing
  • 7. git branch -> to check current branch git checkout -b ā€œbranch_nameā€ -> to create a branch and switch to it git checkout ā€œbranch_nameā€ -> to switch to a branch
  • 8. Undoing in git git branch -d ā€œbranch nameā€ git reset ā€œfile_nameā€ git reset HEAD~1 (for last commit) *git log -> to see past commits and their hash id
  • 9. fork the repo from GDSC-AdtU/Intro-to-github make a local directory go to terminal clone the repo from your account into the directory $git clone "your forked repo link" $git init $git config --global user.name "your-user-name" $git config --global user.email "username@mail.com" $cd "to-the-cloned-folder"
  • 10. git checkout -b "your-branch-name" *make-your-changes to the file git add "modified-file-name" git commit -m "added your-name" git remote add origin "your forked repo link" git remote add upstream "original repo link" git push origin -u "your-branch-name" go to github user interface and click to "compare and pull request" click on "create pull request" done :)