SlideShare a Scribd company logo
1 of 32
Download to read offline
Abhishek Singh
Lead, GDSC-ZHCET ‘23
"Coding is not just about making
something work, but making it
work efficiently and beautifully."
SCAN ME
Dive into Open
Source with
GitHub and Git
Priyanshi Rai
Hi I am!
Final year student at University of Lucknow
GitHub Campus Expert
GDSC Lead’23
Product designer @datainfra
Community - Fork&Forge
Topic to be covered
What is Open Source?
Why Open Source and it’s requirement
What is git?
GitHub Overview
Basic Terminologies: Branching, Merging, Conflicts,
Reverting, Staging area
Commands used in git
Handson of git on GitHub
What is Open Source?
• Open source software is code that is
designed to be publicly accessible.
• Open source software fosters open
exchange, collaborative participation,
transparency, and community-oriented
development.
• Massive codebases are maintained by non-
profit communities, allowing anyone with the
required skills to contribute and engage with
open source projects easily.
Real-World Examples
Linux
Linux, an open source
operating system, powers
millions of devices worldwide
and is renowned for its
stability, security, and
flexibility.
Python, an open source
programming language, is
widely used in various
domains.
Python
WordPress, a popular open
source content management
system, used to create
stunning websites without
coding knowledge.
WordPress
Why Open Source?
• Gain Experience working on a high-quality, large-scale, real-world projects.
• The only entry barrier is your own skill.
• Get Mentored and learn with world-class coders.
• Build your portfolio with proof of work (PRs).
• Earn cool swags, goodies and stickers ( ͡° ͜ʖ ͡°)
• Earn in $$$ spend in ₹₹₹
• Learn, collaborate, and network with global talent.
Requirements for Open Source
• Git & GitHub
• Basic - Intermediate programming skills in
at least one popular programming language
like Python, C, C++, HTML/CSS/JS,
Java,Golang etc.
• Google-Fu: The ability to independently find
and implement solutions to problems using
documentation, and internet resources.
List of Open Source Programs
1
3
2
4
LFX Mentorship Program
$3000 USD stipend | 6 Month | Link
Google Summer of Code
Link | 3,000 USD stipend | 3 Month
Major League Hacking(MLH) Fellowship
3 lakh rupee stipend | 3 Month | Link
Hacktoberfest
Link | Offer swags | 1 Month
What is Git?
Git is a powerful version control system that you can
use to manage your code.
Basically git is a command line tool that allow you to
track changes over time, revert changes and also
collaborate with other developers on the same files.
GitHub is a platform that hosts billions of lines of code,
and it’s where millions of developers gather every day to
collaborate on and report issues with open source
software.
It serves as a hub for version control, collaboration, and
project management.
Version control allows developers to track changes,
manage codebase history, and work together
seamlessly.
GitHub
About
a repository is like a bag(storage)
that contain all the files and folders
related to a project cloned in our
system. The repository keeps a
record of all the versions we had.
Repository
Branching
Branching is like providing a
separate room where one can
create, update, and test your ideas
without hindering the pre-existing
project.
Merging means integrating two or
more branches. It is a process of
combining different versions of
codes(files).
Merging
Merge conflict
Suppose a file has the same
question but different answers
edited simultaneously in different
branches(by user A and user B).
REMOTE REPOSITORY
LOCAL REPOSITORY
The local repository is present on our computer and consists of
all the files and folders. This Repository is used to make
changes locally, review history, and commit when offline.
The remote repository refers to the server repository that may be
present anywhere. This repository is used by all the team members
to exchange the changes made.
Git Commands
Download git
Link to download
First step
Check whether the git is downloaded in your system
The command git init is used to create an empty Git repository.
Add command is used after checking the status of the files, to add those files
to the staging area.
git init
git add .
git commit -m “....”
The commit command makes sure that the changes are saved to the local
repository.
git status
The git status command tells the current state of the repository. The
command provides the current working branch.
git log
The git status command tells the history of all the changes.
git stash
Suppose we write some code and don’t want to commit it but save it
somewhere for future use. Here we use stash command.
Let’s play on
GitHub with git
CREATE A REPO
git branch <branch name>
The git branch command is used to determine what branch the local repository
is on.
git checkout <branch name>
The git checkout command is used to switch branches, whenever the work is
to be started on a different branch.
git clone <repo url>
The git clone command is used to create a local working copy of an existing remote
repository.
git merge <branch name>
The git merge command is used to integrate the branches together. The
command combines the changes from one branch to another branch.
The command "git pull origin master" copies all the files
from the master branch of the remote repository to the
local repository.
git push origin main
The command git push is used to transfer the commits or pushing the content
from the local repository to the remote repository.
git pull
First make the copy of
project
git clone <URL>
git add .
git commit -m “.......”
git log
git push origin main
Summarising
GitHub Developer
Student Pack
Thank You For Joining
We Hope To See You
In All Our Future
Events!!
Stay Tuned!!!
Instagram Whatsapp LinkedIn
#Community
Twitter (X)

More Related Content

Similar to GDSC ZHCET GitHub Session.pdf

Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptxEshaan35
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab IntroductionKrunal Doshi
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober festUtkarshRaj83
 
Github Case Study By Amil Ali
Github Case Study By Amil AliGithub Case Study By Amil Ali
Github Case Study By Amil AliAmilAli1
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHubDSCVSSUT
 
Git And Git Hub.pptx
Git And Git Hub.pptxGit And Git Hub.pptx
Git And Git Hub.pptxMishalBibi
 
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 GitHubJerome Mberia
 

Similar to GDSC ZHCET GitHub Session.pdf (20)

Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 
git & github.pdf
git & github.pdfgit & github.pdf
git & github.pdf
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober fest
 
git KT .pptx
git KT .pptxgit KT .pptx
git KT .pptx
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
Github Case Study By Amil Ali
Github Case Study By Amil AliGithub Case Study By Amil Ali
Github Case Study By Amil Ali
 
GIT and GITHUB
GIT and GITHUBGIT and GITHUB
GIT and GITHUB
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
 
Gitting better
Gitting betterGitting better
Gitting better
 
git Introduction.pptx
git Introduction.pptxgit Introduction.pptx
git Introduction.pptx
 
Git And Git Hub.pptx
Git And Git Hub.pptxGit And Git Hub.pptx
Git And Git Hub.pptx
 
Hacktoberfest 2021
Hacktoberfest 2021Hacktoberfest 2021
Hacktoberfest 2021
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
 
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
GitGit
Git
 
Git Mastery
Git MasteryGit Mastery
Git Mastery
 
Git & GitHub N00bs
Git & GitHub N00bsGit & GitHub N00bs
Git & GitHub N00bs
 
Git overview
Git overviewGit overview
Git overview
 

Recently uploaded

Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Osopher
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEMISSRITIMABIOLOGYEXP
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipKarl Donert
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfChristalin Nelson
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxMadhavi Dharankar
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfChristalin Nelson
 
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...HetalPathak10
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxryandux83rd
 

Recently uploaded (20)

prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenship
 
Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,
 
Chi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical VariableChi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical Variable
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdf
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptx
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
 
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptx
 

GDSC ZHCET GitHub Session.pdf

  • 1.
  • 2. Abhishek Singh Lead, GDSC-ZHCET ‘23 "Coding is not just about making something work, but making it work efficiently and beautifully." SCAN ME
  • 3.
  • 4. Dive into Open Source with GitHub and Git
  • 5. Priyanshi Rai Hi I am! Final year student at University of Lucknow GitHub Campus Expert GDSC Lead’23 Product designer @datainfra Community - Fork&Forge
  • 6. Topic to be covered What is Open Source? Why Open Source and it’s requirement What is git? GitHub Overview Basic Terminologies: Branching, Merging, Conflicts, Reverting, Staging area Commands used in git Handson of git on GitHub
  • 7. What is Open Source? • Open source software is code that is designed to be publicly accessible. • Open source software fosters open exchange, collaborative participation, transparency, and community-oriented development. • Massive codebases are maintained by non- profit communities, allowing anyone with the required skills to contribute and engage with open source projects easily.
  • 8. Real-World Examples Linux Linux, an open source operating system, powers millions of devices worldwide and is renowned for its stability, security, and flexibility. Python, an open source programming language, is widely used in various domains. Python WordPress, a popular open source content management system, used to create stunning websites without coding knowledge. WordPress
  • 9. Why Open Source? • Gain Experience working on a high-quality, large-scale, real-world projects. • The only entry barrier is your own skill. • Get Mentored and learn with world-class coders. • Build your portfolio with proof of work (PRs). • Earn cool swags, goodies and stickers ( ͡° ͜ʖ ͡°) • Earn in $$$ spend in ₹₹₹ • Learn, collaborate, and network with global talent.
  • 10. Requirements for Open Source • Git & GitHub • Basic - Intermediate programming skills in at least one popular programming language like Python, C, C++, HTML/CSS/JS, Java,Golang etc. • Google-Fu: The ability to independently find and implement solutions to problems using documentation, and internet resources.
  • 11. List of Open Source Programs 1 3 2 4 LFX Mentorship Program $3000 USD stipend | 6 Month | Link Google Summer of Code Link | 3,000 USD stipend | 3 Month Major League Hacking(MLH) Fellowship 3 lakh rupee stipend | 3 Month | Link Hacktoberfest Link | Offer swags | 1 Month
  • 12. What is Git? Git is a powerful version control system that you can use to manage your code. Basically git is a command line tool that allow you to track changes over time, revert changes and also collaborate with other developers on the same files.
  • 13. GitHub is a platform that hosts billions of lines of code, and it’s where millions of developers gather every day to collaborate on and report issues with open source software. It serves as a hub for version control, collaboration, and project management. Version control allows developers to track changes, manage codebase history, and work together seamlessly. GitHub About
  • 14. a repository is like a bag(storage) that contain all the files and folders related to a project cloned in our system. The repository keeps a record of all the versions we had. Repository Branching Branching is like providing a separate room where one can create, update, and test your ideas without hindering the pre-existing project.
  • 15. Merging means integrating two or more branches. It is a process of combining different versions of codes(files). Merging Merge conflict Suppose a file has the same question but different answers edited simultaneously in different branches(by user A and user B).
  • 16. REMOTE REPOSITORY LOCAL REPOSITORY The local repository is present on our computer and consists of all the files and folders. This Repository is used to make changes locally, review history, and commit when offline. The remote repository refers to the server repository that may be present anywhere. This repository is used by all the team members to exchange the changes made.
  • 17.
  • 18.
  • 21. First step Check whether the git is downloaded in your system
  • 22. The command git init is used to create an empty Git repository. Add command is used after checking the status of the files, to add those files to the staging area. git init git add . git commit -m “....” The commit command makes sure that the changes are saved to the local repository.
  • 23. git status The git status command tells the current state of the repository. The command provides the current working branch. git log The git status command tells the history of all the changes. git stash Suppose we write some code and don’t want to commit it but save it somewhere for future use. Here we use stash command.
  • 24. Let’s play on GitHub with git CREATE A REPO
  • 25. git branch <branch name> The git branch command is used to determine what branch the local repository is on. git checkout <branch name> The git checkout command is used to switch branches, whenever the work is to be started on a different branch. git clone <repo url> The git clone command is used to create a local working copy of an existing remote repository.
  • 26. git merge <branch name> The git merge command is used to integrate the branches together. The command combines the changes from one branch to another branch. The command "git pull origin master" copies all the files from the master branch of the remote repository to the local repository. git push origin main The command git push is used to transfer the commits or pushing the content from the local repository to the remote repository. git pull
  • 27.
  • 28. First make the copy of project git clone <URL> git add . git commit -m “.......” git log git push origin main Summarising
  • 30.
  • 31. Thank You For Joining We Hope To See You In All Our Future Events!!
  • 32. Stay Tuned!!! Instagram Whatsapp LinkedIn #Community Twitter (X)