

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: GitHub Repository
incomplete
2: GitHub Repo
incomplete
3: Git Push
incomplete
4: Pull
incomplete
5: Pull Requests
incomplete
6: My Workflow
incomplete
7: Merge Pull Request
incomplete
This lesson's interactive features are locked, please to keep using them
The git push command pushes (sends) local changes to any "remote" - in our case, GitHub. For example, to push our local main branch's commits to the remote origin's main branch we would run:
git push origin main
You need to be authenticated with the remote to push changes, which you should have done in the last lesson.
You can also push a local branch to a remote with a different name:
git push origin <localbranch>:<remotebranch>
It's less common to do this, but nice to know.
You can also delete a remote branch by pushing an empty branch to it:
git push origin :<remotebranch>
Let's push our local main branch to the remote origin repo for safekeeping!
Paste in the link to your repo and submit the tests.