I'm going to push a local branch to remote branch. The command I found is this: git push
I'm confused with is this the name of the local branch I will push, or the name of the remote branch I will push to?
CodePudding user response:
The safe standard way to do this is to say
git push origin @
That means: "Push the current local branch [the branch we are on right now] to a remote branch with the same name." That is the usual thing to want to do, and is so common in my own world that I have created an alias for it.
CodePudding user response:
You can push your local branch to git using this cmd
if you dont have your local branch on remote yet:
git push --set-upstream origin local_branch_name
and if u already have your local branch on remote just need to push
git push origin