Create Pull Request in GitHub on Mac - VicPhanDevOps/mac GitHub Wiki

• Browse to the repository in the Finder and right-click the directory. Expand the “Services” menu and select “New Terminal at Folder.”
image

• Type git status and press the return key to make sure you’re on the main branch and the working tree is clean.
image

• Type git checkout -b < branch > and press the return key to create a new branch and check it out.
image

• Make desired code changes.
image

• Type clear and press the return key to clear the Terminal.
image

• Type git status and press the return key to see the changes waiting to be staged.
image

• Type git add . and press the return key to stage all changes.
image

• Type git commit -m “< commit message >” and press the return key to commit the change(s) with a commit message.
image

• Type git push --set-upstream origin < branch > and press the return key to push the changes up to GitHub.
image

• Go to https://github.com/ in a web browser, type the desired repository in the “Find a repository…” box and select the repository from the result(s).
image

• Select “Compare & pull request.”
image

• Expand the “Reviewers” menu, type desired reviewer in the “Type or choose a user” box and select the reviewer from the result(s).
image

• Select “Create pull request.”
image

• The pull request will be created and will wait for the reviewer’s approval.

image

⚠️ **GitHub.com Fallback** ⚠️