Answers for "command for push the code to particular branch in git"

0

how to push current code to new branch git

git checkout -b my_new_branch
git commit
Posted by: Guest on September-29-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

Code answers related to "command for push the code to particular branch in git"

Browse Popular Code Answers by Language