Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Push a New Branch to github that Doesn't Exist Remotely Yet


    We'll make a new feature branch with:

    git checkout -b new-branch

    and then when we make changes and commit them, we can try to push that branch with:

    git push

    However, in order to get the branch to exist on github as well, we need to set the upstream of the local branch at the same time with:

    git push --set-upstream origin new-branch