Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (22 loc) · 1.12 KB

File metadata and controls

33 lines (22 loc) · 1.12 KB

⇦ Back to: Commit | ⇧ Overview | ⇨ Next: Create Pull Request

Push the branch

You can share your branch (and all of the commits required to recreate its history) by pushing it to GitHub.

Using GitHub Desktop

Click the "Publish Branch" button at the top of the UI Screen Shot 2022-10-07 at 08 40 43

Using git on the command line

Switch to the branch you would like to push:

git switch branch-you-want-to-push

Check you're on the correct branch by running and checking the output from:

git status

Once you're on the correct branch, push it by running:

git push -u origin

💡 -u means "set the upstream branch for git pull and git status."

  • Whenever you run the command git pull in future, git will automatically pull from the remote branch you created.
  • Similarly, when you run git status, git will check whether your local branch is up-to-date with this remote branch.