Answers for "git push local branch to different remote branch"

10

push a local branch

Create a new branch:
git checkout -b feature_branch_name

Edit, add and commit your files.

Push your branch to the remote repository:
git push -u origin feature_branch_name
Posted by: Guest on March-23-2020
5

create local and remote branch

git checkout -b yourBranchName
git push -u origin yourBanchName
Posted by: Guest on April-27-2020
2

push to specific remote branch

git push origin localBranchName:remoteBranchName
Posted by: Guest on June-21-2021
-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

Code answers related to "git push local branch to different remote branch"

Browse Popular Code Answers by Language