Answers for "push to specific remote branch"

2

push to specific remote branch

git push origin localBranchName:remoteBranchName
Posted by: Guest on June-21-2021
1

git push specific branch

# In some cases, you may want to push your changes 
# to another branch on the remote repository.
#
# In order to push your branch to another remote branch, 
# use the “git push” command and specify the remote name, 
# the name of your local branch as the name of the remote branch.

$ git push <remote> <local_branch>:<remote_name>
Posted by: Guest on October-13-2020
-2

git push to different remote branch

# To remove the exist origin
git remote remove origin

# And then add new origin master URL
git remote set-url origin git://new.url.here

Follow me on GITHUB/bilalahmedkhatri
Posted by: Guest on October-27-2020

Browse Popular Code Answers by Language