SlideShare uma empresa Scribd logo
1 de 18
Presented by
Repertoire of Contributions
Day 2
“Hands-on-session on Git and GitHub”
Brought to you by
Today's Agenda💮
❏ What Is Git? 🤔
❏ Git Commands 😉
❏ Branches In Git 🤔🎓
❏ Git And GitHub Workflow
❏ Steps To Contribute In Hacktoberfest 💻
❏ Merging Pull Requests 🐱👤
❏ Resource To Learn Everything About Git🎡
Software Developer
Azegate IT Solutions
Aman
Irshad
@amanirshad
Introduction to Git
Git is an open source distributed version control system.
Let’s break it down into simple words and see what it means.
What Is VCS?😉
❏ A Version Control System tracks the history of changes as people and
teams collaborate on projects together.
❏ As the project evolves, teams can run tests, fix bugs, and contribute new
code with the confidence that any version can be recovered at any time.
❏ Developers can review project history to find the answers to questions
like “which changes were made?”, “who made the changes?”, “when
were the changes made?”, “why were the changes needed?”, and many
more.
What is Distributed VCS?
❏ DVCSs allow full access to every file, branch, and iteration of a
project, and allows every user access to a full and self-contained
history of all changes.
❏ Git doesn’t need a constant connection to a central repository.
❏ Developers can work anywhere and collaborate asynchronously
from any time zone.
❏ Without Version Control, team members are subject to
redundant tasks, slower timelines and multiple copies of a single
project.
What is Git?🤔
❏ Git is an example of Distributed Version Control System commonly used for
open source and commercial software development.
❏ According to latest statistics, more than 70 percent of developers use git,
making it the most used VCS in the world.
❏ Git has significant benefits for individuals, teams and businesses.
Why use Git?💻
❏ Git lets developers see the entire timeline of their changes, decisions, and
progression of any project in one place.
❏ Developers work in every time zone. With a DVCS like Git, collaboration can
happen any time while maintaining source code integrity.
❏ Using branches, developers can safely propose changes to production code.
❏ Businesses using Git can break down communication barriers between teams and
keep them focused on doing their best work.
❏ Git makes it possible to align experts across a business to collaborate on major
projects.
Getting Started with Git🐱👤
❏ Downloading Git: You can download git for your specific operating
system from here: https://git-scm.com/downloads
❏ The following link has the details of downloading and installing git in
multiple operating systems: https://git-scm.com/book/en/v2/Getting-
Started-Installing-Git
❏ You’re all set!
Git Commands🐱👤
❏ git --version
❏ git init <directory>
❏ git add <directory>
❏ git config user.name <name>
❏ git clone <repo>
For more commands visit:
https://www.atlassian.com/git/tutorials/atlassian-git-cheatsheet
❏ git commit -m “message”
❏ git status
❏ git log
❏ git pull
❏ git diff
How does GitHub fit in?
● Github is a Git hosting repository that provides developers with tools to ship
better code through command line features, issues, pull requests, code review,
etc.
● With collaboration layers like Github flow, a community of 15 million
developers, and an ecosystem with hundreds of integrations, Github changes
the way software is built.
● Github builds collaboration directly into the development process.
Branches in Git
Branching means you diverge from the main line of development and
continue to do work without messing with that main line. Creating a new
branch allows you to create a new pointer to move around.
Your Work
Main Branch
Someone else’s Work
Git Workflow
A Git workflow is a recipe or recommendation for how to use Git to accomplish
work in a consistent and productive manner. Git workflows encourage
developers and DevOps teams to leverage Git effectively and consistently. Git
offers a lot of flexibility in how users manage changes.
GitHub Workflow
‘Master’ Branch
Create Branch
Commit Changes
Pull Requests
Get Feedback
Merge Changes
What Happens After You Make A PR?
● After you make a Pull Request, the maintainer of the repository will be able to
see and compare the changes you have made to the project.
● If they find some problems, they can request changes to be made and provide
feedback. They will also check whether your PR has followed all the
“contributing guidelines” usually mentioned in the project.
● After this is done, your PR will be merged into the required branch of the
project by the maintainer.
● A PR wrongly merged can be reverted back using the “Revert” button in
Github.
Contribute In Hacktoberfest
❏ Find the repository you want to make changes to. (Has to contain the
“hacktoberfest” label in it)
❏ Find an issue you want to work on (preferably with the label “good-
first-issue”)
❏ Fork the repo
❏ Clone the repo to local computer
❏ Make changes as required
❏ Commit changes
❏ Make a pull request
❏ Wait for your PR to get merged with the label “hacktoberfest-
accepted”.
A Note To Remember
● While searching for an issue to solve, you will find that some
of them already have assignees. This means that someone has
already been assigned to solve the issue mentioned.
● If that is the case, try finding another issue which does not
have any assignees and you can either ask the maintainer to
assign you the task or you can make a pull request and link it
to that particular issue.
THE END

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Git n git hub
Git n git hubGit n git hub
Git n git hub
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
 
Git real slides
Git real slidesGit real slides
Git real slides
 
Learning git
Learning gitLearning git
Learning git
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
 
Git & GitHub WorkShop
Git & GitHub WorkShopGit & GitHub WorkShop
Git & GitHub WorkShop
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Github
GithubGithub
Github
 
Git for beginners
Git for beginnersGit for beginners
Git for beginners
 
Github basics
Github basicsGithub basics
Github basics
 
A Practical Introduction to git
A Practical Introduction to gitA Practical Introduction to git
A Practical Introduction to git
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 

Semelhante a Workshop on Git and GitHub

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
 

Semelhante a Workshop on Git and GitHub (20)

Git tech
Git techGit tech
Git tech
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
 
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
 
Day 2_ Get Git with It! A Developer's Workshop.pptx
Day 2_ Get Git with It! A Developer's Workshop.pptxDay 2_ Get Git with It! A Developer's Workshop.pptx
Day 2_ Get Git with It! A Developer's Workshop.pptx
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Git and GitHub Info Session
Git and GitHub Info SessionGit and GitHub Info Session
Git and GitHub Info Session
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober fest
 
Learning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdfLearning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdf
 
Hacktoberfest 2021
Hacktoberfest 2021Hacktoberfest 2021
Hacktoberfest 2021
 
Git essential training & sharing self
Git essential training & sharing selfGit essential training & sharing self
Git essential training & sharing self
 
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 Tutorial
Git Tutorial Git Tutorial
Git Tutorial
 
Formation git
Formation gitFormation git
Formation git
 
concordia hacktoberfest.pptx
concordia hacktoberfest.pptxconcordia hacktoberfest.pptx
concordia hacktoberfest.pptx
 
Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.
 
Gitting better
Gitting betterGitting better
Gitting better
 
Get Git with It! A Developer's Workshop.pptx
Get Git with It! A Developer's Workshop.pptxGet Git with It! A Developer's Workshop.pptx
Get Git with It! A Developer's Workshop.pptx
 

Mais de DSCVSSUT

Mais de DSCVSSUT (9)

Flutter-Festivals Day-4.pptx
Flutter-Festivals Day-4.pptxFlutter-Festivals Day-4.pptx
Flutter-Festivals Day-4.pptx
 
Flutter-Festivals Day-3.pptx
Flutter-Festivals Day-3.pptxFlutter-Festivals Day-3.pptx
Flutter-Festivals Day-3.pptx
 
Flutter-Festivals Day-2.pptx
Flutter-Festivals Day-2.pptxFlutter-Festivals Day-2.pptx
Flutter-Festivals Day-2.pptx
 
Dart and Flutter Basics.pptx
Dart and Flutter Basics.pptxDart and Flutter Basics.pptx
Dart and Flutter Basics.pptx
 
Google Developer Student Clubs 2022 Solution Challenge
Google Developer Student Clubs 2022 Solution ChallengeGoogle Developer Student Clubs 2022 Solution Challenge
Google Developer Student Clubs 2022 Solution Challenge
 
Android Study Jam Session 2
Android Study Jam Session 2Android Study Jam Session 2
Android Study Jam Session 2
 
Android Study Jam Session 1
Android Study Jam Session 1Android Study Jam Session 1
Android Study Jam Session 1
 
Android Study Jam - Info Session
Android Study Jam - Info SessionAndroid Study Jam - Info Session
Android Study Jam - Info Session
 
Repertoire of contributions hacktoberfest
Repertoire of contributions hacktoberfestRepertoire of contributions hacktoberfest
Repertoire of contributions hacktoberfest
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Workshop on Git and GitHub

  • 1. Presented by Repertoire of Contributions Day 2 “Hands-on-session on Git and GitHub” Brought to you by
  • 2. Today's Agenda💮 ❏ What Is Git? 🤔 ❏ Git Commands 😉 ❏ Branches In Git 🤔🎓 ❏ Git And GitHub Workflow ❏ Steps To Contribute In Hacktoberfest 💻 ❏ Merging Pull Requests 🐱👤 ❏ Resource To Learn Everything About Git🎡
  • 3. Software Developer Azegate IT Solutions Aman Irshad @amanirshad
  • 4. Introduction to Git Git is an open source distributed version control system. Let’s break it down into simple words and see what it means.
  • 5. What Is VCS?😉 ❏ A Version Control System tracks the history of changes as people and teams collaborate on projects together. ❏ As the project evolves, teams can run tests, fix bugs, and contribute new code with the confidence that any version can be recovered at any time. ❏ Developers can review project history to find the answers to questions like “which changes were made?”, “who made the changes?”, “when were the changes made?”, “why were the changes needed?”, and many more.
  • 6. What is Distributed VCS? ❏ DVCSs allow full access to every file, branch, and iteration of a project, and allows every user access to a full and self-contained history of all changes. ❏ Git doesn’t need a constant connection to a central repository. ❏ Developers can work anywhere and collaborate asynchronously from any time zone. ❏ Without Version Control, team members are subject to redundant tasks, slower timelines and multiple copies of a single project.
  • 7. What is Git?🤔 ❏ Git is an example of Distributed Version Control System commonly used for open source and commercial software development. ❏ According to latest statistics, more than 70 percent of developers use git, making it the most used VCS in the world. ❏ Git has significant benefits for individuals, teams and businesses.
  • 8. Why use Git?💻 ❏ Git lets developers see the entire timeline of their changes, decisions, and progression of any project in one place. ❏ Developers work in every time zone. With a DVCS like Git, collaboration can happen any time while maintaining source code integrity. ❏ Using branches, developers can safely propose changes to production code. ❏ Businesses using Git can break down communication barriers between teams and keep them focused on doing their best work. ❏ Git makes it possible to align experts across a business to collaborate on major projects.
  • 9. Getting Started with Git🐱👤 ❏ Downloading Git: You can download git for your specific operating system from here: https://git-scm.com/downloads ❏ The following link has the details of downloading and installing git in multiple operating systems: https://git-scm.com/book/en/v2/Getting- Started-Installing-Git ❏ You’re all set!
  • 10. Git Commands🐱👤 ❏ git --version ❏ git init <directory> ❏ git add <directory> ❏ git config user.name <name> ❏ git clone <repo> For more commands visit: https://www.atlassian.com/git/tutorials/atlassian-git-cheatsheet ❏ git commit -m “message” ❏ git status ❏ git log ❏ git pull ❏ git diff
  • 11. How does GitHub fit in? ● Github is a Git hosting repository that provides developers with tools to ship better code through command line features, issues, pull requests, code review, etc. ● With collaboration layers like Github flow, a community of 15 million developers, and an ecosystem with hundreds of integrations, Github changes the way software is built. ● Github builds collaboration directly into the development process.
  • 12. Branches in Git Branching means you diverge from the main line of development and continue to do work without messing with that main line. Creating a new branch allows you to create a new pointer to move around. Your Work Main Branch Someone else’s Work
  • 13. Git Workflow A Git workflow is a recipe or recommendation for how to use Git to accomplish work in a consistent and productive manner. Git workflows encourage developers and DevOps teams to leverage Git effectively and consistently. Git offers a lot of flexibility in how users manage changes.
  • 14. GitHub Workflow ‘Master’ Branch Create Branch Commit Changes Pull Requests Get Feedback Merge Changes
  • 15. What Happens After You Make A PR? ● After you make a Pull Request, the maintainer of the repository will be able to see and compare the changes you have made to the project. ● If they find some problems, they can request changes to be made and provide feedback. They will also check whether your PR has followed all the “contributing guidelines” usually mentioned in the project. ● After this is done, your PR will be merged into the required branch of the project by the maintainer. ● A PR wrongly merged can be reverted back using the “Revert” button in Github.
  • 16. Contribute In Hacktoberfest ❏ Find the repository you want to make changes to. (Has to contain the “hacktoberfest” label in it) ❏ Find an issue you want to work on (preferably with the label “good- first-issue”) ❏ Fork the repo ❏ Clone the repo to local computer ❏ Make changes as required ❏ Commit changes ❏ Make a pull request ❏ Wait for your PR to get merged with the label “hacktoberfest- accepted”.
  • 17. A Note To Remember ● While searching for an issue to solve, you will find that some of them already have assignees. This means that someone has already been assigned to solve the issue mentioned. ● If that is the case, try finding another issue which does not have any assignees and you can either ask the maintainer to assign you the task or you can make a pull request and link it to that particular issue.