If I create branches on my local git repos like so:
git checkout -b test
then do a push
git push
I don’t actually see the new branch test in my GitHub page. How do I make my remote branches mirror my local branches?
Update
When I made a commit (even though there were no changes) and ran:
git push origin test
that worked. But is that the correct way? Shouldn’t a git push push all local changes to the remote repository?
Use
To create the remote branch.
Yes.
Only if the branch was setup to track to remote branch in the first place. Your branch isn’t tracking anything until you explicitly push it once.