2
Most read
4
Most read
5
Most read
You plan to send a Pull Request (PR)
to a remote public repo
Pull Request (PR): A git workflow
 Download git
 For windows
 For OSX
 For Linux
 Create a git account
 config the global user if needed for committing
 git config --global user.name <YOUR NAME>
 git config --global user.email <YOUR EMAIL>
 YOU:
 Fork a remote public repo (UI operation)
 Work on a branch (DO NOT WORK on MASTER)
 Commit to that branch (avoid multiple commits
otherwise squash into one)
 On github UI from your repo, switch to your branch,
send a pull request to the remote repo master unless
specified otherwise
 Remote public repo (upstream)
 Review the change
 Merge into their branch if ok
 Local (master)
 git clone <your forked repo origin>
 git remote add upstream <repo you forked from>
 git checkout –b <branch>
 git add*
 git add <filename>
 git commit –m “message”
 Push to your remote repo (origin)
 git push origin <branch>
 If everything goes ok, you are safe to delete this
branch, from your locale repo
 git push origin –delete <branch>
 If you want to PR later to the same remote repo
 Keep your master clean so you can rebase
 Keep your fork updated
 git fetch upstream
 Git merge upstream/master
 work on a branch
 Always work on a branch from your forked repo
 If your PR needs rework, commit to the same
branch, then may need to squash commits

More Related Content

PDF
GIT Básico
PDF
Gitlab flow solo
PDF
GitHub Actions in action
PDF
Git flow Introduction
PDF
Starting with Git & GitHub
PDF
Intro to Github Actions @likecoin
PDF
Gitのよく使うコマンド
PDF
Git e GitHub
GIT Básico
Gitlab flow solo
GitHub Actions in action
Git flow Introduction
Starting with Git & GitHub
Intro to Github Actions @likecoin
Gitのよく使うコマンド
Git e GitHub

What's hot (20)

PPTX
Git basics to advance with diagrams
PPT
Git basic
PDF
Git and Github
ODP
Controllo di versione e Git
PDF
Aprendendo Git
PPTX
Introduction git
PDF
Introduction to Git
PDF
Docker Compose by Aanand Prasad
PPTX
Puppet Tutorial | Puppet Tutorial For Beginners | Puppet Configuration Manage...
PPTX
Gitflow - Branching and Merging Flow for Git
PPTX
GitLab for CI/CD process
PDF
【BS12】Visual Studio 2022 40分一本勝負!
PDF
Devops Porto - CI/CD at Gitlab
PDF
Introduction to GitHub Actions
PDF
Learning git
PDF
Git real slides
PDF
15分でわかるGit入門
PDF
GDSC GIT AND GITHUB
KEY
Introduction to Git
PDF
Apache Arrow
Git basics to advance with diagrams
Git basic
Git and Github
Controllo di versione e Git
Aprendendo Git
Introduction git
Introduction to Git
Docker Compose by Aanand Prasad
Puppet Tutorial | Puppet Tutorial For Beginners | Puppet Configuration Manage...
Gitflow - Branching and Merging Flow for Git
GitLab for CI/CD process
【BS12】Visual Studio 2022 40分一本勝負!
Devops Porto - CI/CD at Gitlab
Introduction to GitHub Actions
Learning git
Git real slides
15分でわかるGit入門
GDSC GIT AND GITHUB
Introduction to Git
Apache Arrow
Ad

Viewers also liked (16)

PDF
Git-flow workflow and pull-requests
PDF
GitHub Pull Request Builder for Drupal
ODP
Jenkins Job Builder: our experience
PDF
Serving Pull Requests with Jenkins
PDF
ADG Poznań - Kotlin for Android developers
PPT
Git workflows presentation
PDF
Git flow for daily use
PDF
Gitlab flow
PDF
Git workflow step by step
PPTX
ScrumS - A Model for Safe Agile Development
PPTX
GitFlow, SourceTree and GitLab
PDF
Gitlab Training with GIT and SourceTree
PPTX
Ефективність перерозподілу податків у процесі децентралізації
PDF
Git workflows
PDF
Git Branching Model
Git-flow workflow and pull-requests
GitHub Pull Request Builder for Drupal
Jenkins Job Builder: our experience
Serving Pull Requests with Jenkins
ADG Poznań - Kotlin for Android developers
Git workflows presentation
Git flow for daily use
Gitlab flow
Git workflow step by step
ScrumS - A Model for Safe Agile Development
GitFlow, SourceTree and GitLab
Gitlab Training with GIT and SourceTree
Ефективність перерозподілу податків у процесі децентралізації
Git workflows
Git Branching Model
Ad

Similar to Pull Request (PR): A git workflow (20)

PDF
GIT Basics
PDF
PDF
How to Really Get Git
PPT
Git102
PPT
Git Atlrug
PDF
SVN 2 Git
PPTX
Git tutorial
DOCX
Git cheatsheet
PDF
Atlassian git cheatsheet
PPTX
PDF
VCS for Teamwork - GIT Workshop
PDF
Git basics a starter on git and its ecosystem
PPTX
PPT
Effective Git with Eclipse
PDF
Git 101: Force-sensitive to Jedi padawan
PDF
git fail --force (make it up with your pull requests)
PDF
Git basic introduction & tutorial for begginer
PPTX
Git-ing out of your git messes
KEY
Git Distributed Version Control System
PDF
Git and github 101
GIT Basics
How to Really Get Git
Git102
Git Atlrug
SVN 2 Git
Git tutorial
Git cheatsheet
Atlassian git cheatsheet
VCS for Teamwork - GIT Workshop
Git basics a starter on git and its ecosystem
Effective Git with Eclipse
Git 101: Force-sensitive to Jedi padawan
git fail --force (make it up with your pull requests)
Git basic introduction & tutorial for begginer
Git-ing out of your git messes
Git Distributed Version Control System
Git and github 101

More from Joan Yin (6)

PPTX
Sequelize js
PPTX
The rule of least power
PPTX
Elon musk
PPTX
Npm and bower
PDF
Reverse heartbleed
PDF
Open ssl heartbleed
Sequelize js
The rule of least power
Elon musk
Npm and bower
Reverse heartbleed
Open ssl heartbleed

Recently uploaded (20)

PPTX
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
PPT
Storage Area Network Best Practices from HP
PDF
Ericsson 5G Feature,KPIs Analysis_ Overview, Dependencies & Recommendations (...
PDF
Human Computer Interaction Miterm Lesson
PDF
Ebook - The Future of AI A Comprehensive Guide.pdf
PPTX
CRM(Customer Relationship Managmnet) Presentation
PDF
Streamline Vulnerability Management From Minimal Images to SBOMs
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
PDF
The AI Revolution in Customer Service - 2025
PDF
EGCB_Solar_Project_Presentation_and Finalcial Analysis.pdf
PDF
Advancements in abstractive text summarization: a deep learning approach
PDF
Technical Debt in the AI Coding Era - By Antonio Bianco
PDF
Decision Optimization - From Theory to Practice
PPTX
How to use fields_get method in Odoo 18
PDF
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
PDF
Gestión Unificada de los Riegos Externos
PDF
Fitaura: AI & Machine Learning Powered Fitness Tracker
PPTX
Build automations faster and more reliably with UiPath ScreenPlay
PDF
NewMind AI Journal Monthly Chronicles - August 2025
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
Storage Area Network Best Practices from HP
Ericsson 5G Feature,KPIs Analysis_ Overview, Dependencies & Recommendations (...
Human Computer Interaction Miterm Lesson
Ebook - The Future of AI A Comprehensive Guide.pdf
CRM(Customer Relationship Managmnet) Presentation
Streamline Vulnerability Management From Minimal Images to SBOMs
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
The AI Revolution in Customer Service - 2025
EGCB_Solar_Project_Presentation_and Finalcial Analysis.pdf
Advancements in abstractive text summarization: a deep learning approach
Technical Debt in the AI Coding Era - By Antonio Bianco
Decision Optimization - From Theory to Practice
How to use fields_get method in Odoo 18
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
Gestión Unificada de los Riegos Externos
Fitaura: AI & Machine Learning Powered Fitness Tracker
Build automations faster and more reliably with UiPath ScreenPlay
NewMind AI Journal Monthly Chronicles - August 2025

Pull Request (PR): A git workflow

  • 1. You plan to send a Pull Request (PR) to a remote public repo
  • 3.  Download git  For windows  For OSX  For Linux  Create a git account  config the global user if needed for committing  git config --global user.name <YOUR NAME>  git config --global user.email <YOUR EMAIL>
  • 4.  YOU:  Fork a remote public repo (UI operation)  Work on a branch (DO NOT WORK on MASTER)  Commit to that branch (avoid multiple commits otherwise squash into one)  On github UI from your repo, switch to your branch, send a pull request to the remote repo master unless specified otherwise  Remote public repo (upstream)  Review the change  Merge into their branch if ok
  • 5.  Local (master)  git clone <your forked repo origin>  git remote add upstream <repo you forked from>  git checkout –b <branch>  git add*  git add <filename>  git commit –m “message”  Push to your remote repo (origin)  git push origin <branch>
  • 6.  If everything goes ok, you are safe to delete this branch, from your locale repo  git push origin –delete <branch>  If you want to PR later to the same remote repo  Keep your master clean so you can rebase  Keep your fork updated  git fetch upstream  Git merge upstream/master  work on a branch  Always work on a branch from your forked repo  If your PR needs rework, commit to the same branch, then may need to squash commits