I am using Git, and I have created a new branch (named foo) on my local (one that doesn't exist on the repository).
I have made some changes to my original project (master) files and committed all those changes in this new branch. Now I would like to push this new branch to the remote repository. How can I do that?
If I just run git push while I am on the branch foo, will this push the entire branch to the repo? I don't want my changes to be pushed to master. I just want to push this new branch to the main repository.