SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Git and git workflow best practice
Git and git workflow best practiceGit and git workflow best practice
Git and git workflow best practiceMajid Hosseini
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notesglen_a_smith
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsLee Hanxue
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An IntroductionBehzad Altaf
 
GIT | Distributed Version Control System
GIT | Distributed Version Control SystemGIT | Distributed Version Control System
GIT | Distributed Version Control SystemMohammad Imam Hossain
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshareRakesh Sukumar
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and GithubHouari ZEGAI
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticlePRIYATHAMDARISI
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
 
Introduction to Git Commands and Concepts
Introduction to Git Commands and ConceptsIntroduction to Git Commands and Concepts
Introduction to Git Commands and ConceptsCarl Brown
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHubNicolás Tourné
 

Was ist angesagt? (20)

Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Git and git workflow best practice
Git and git workflow best practiceGit and git workflow best practice
Git and git workflow best practice
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
GIT | Distributed Version Control System
GIT | Distributed Version Control SystemGIT | Distributed Version Control System
GIT | Distributed Version Control System
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 
Git and github
Git and githubGit and github
Git and github
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Git basic
Git basicGit basic
Git basic
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
Git training v10
Git training v10Git training v10
Git training v10
 
Introduction to Git Commands and Concepts
Introduction to Git Commands and ConceptsIntroduction to Git Commands and Concepts
Introduction to Git Commands and Concepts
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Github
GithubGithub
Github
 
Github
GithubGithub
Github
 

Ähnlich wie Git and GitHub Workflow Hands-On Session

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.pdfuzair
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptxEshaan35
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hubJasleenSondhi
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hubNaveen Pandey
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober festUtkarshRaj83
 
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.pdfJayprakash677449
 
Git essential training & sharing self
Git essential training & sharing selfGit essential training & sharing self
Git essential training & sharing selfChen-Tien Tsai
 
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
 
concordia hacktoberfest.pptx
concordia hacktoberfest.pptxconcordia hacktoberfest.pptx
concordia hacktoberfest.pptxAnkurVerma95745
 
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.WordCamp Harare
 

Ähnlich wie Git and GitHub Workflow Hands-On Session (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
 
Github
GithubGithub
Github
 
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
 

Mehr von DSCVSSUT

Flutter-Festivals Day-4.pptx
Flutter-Festivals Day-4.pptxFlutter-Festivals Day-4.pptx
Flutter-Festivals Day-4.pptxDSCVSSUT
 
Flutter-Festivals Day-3.pptx
Flutter-Festivals Day-3.pptxFlutter-Festivals Day-3.pptx
Flutter-Festivals Day-3.pptxDSCVSSUT
 
Flutter-Festivals Day-2.pptx
Flutter-Festivals Day-2.pptxFlutter-Festivals Day-2.pptx
Flutter-Festivals Day-2.pptxDSCVSSUT
 
Dart and Flutter Basics.pptx
Dart and Flutter Basics.pptxDart and Flutter Basics.pptx
Dart and Flutter Basics.pptxDSCVSSUT
 
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 ChallengeDSCVSSUT
 
Android Study Jam Session 2
Android Study Jam Session 2Android Study Jam Session 2
Android Study Jam Session 2DSCVSSUT
 
Android Study Jam Session 1
Android Study Jam Session 1Android Study Jam Session 1
Android Study Jam Session 1DSCVSSUT
 
Android Study Jam - Info Session
Android Study Jam - Info SessionAndroid Study Jam - Info Session
Android Study Jam - Info SessionDSCVSSUT
 
Repertoire of contributions hacktoberfest
Repertoire of contributions hacktoberfestRepertoire of contributions hacktoberfest
Repertoire of contributions hacktoberfestDSCVSSUT
 

Mehr von 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
 

Kürzlich hochgeladen

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Kürzlich hochgeladen (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
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
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Git and GitHub Workflow Hands-On Session

  • 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.