Answers for "how to commit to a branch in git"

45

git command to create a branch

//Create a New Branch
git checkout -b [name_of_your_new_branch]
//First Push
git push --set-upstream origin [name_of_your_new_branch]
Posted by: Guest on May-02-2020
16

git merge branch to master

$ git checkout master
Switched to branch 'master'
$ git merge iss53
Merge made by the 'recursive' strategy.
index.html |    1 +
1 file changed, 1 insertion(+)
Posted by: Guest on April-30-2020

Browse Popular Code Answers by Language