Answers for "git create empty branch"

103

git create new branch

// Example for creating a new branch named myNewBranch
git checkout -b myNewBranch

// First Push
git push --set-upstream origin myNewBranch
Posted by: Guest on September-02-2020
1

git create empty branch

git checkout --orphan <branchname>
git rm --cached -r .
Posted by: Guest on April-18-2021
14

git checkout new branch

// create and checkout new branch in one line
git checkout -b new_branch
Posted by: Guest on May-24-2020
0

create empty branch git

git checkout --orphan empty-branch
Posted by: Guest on March-01-2021

Code answers related to "git create empty branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language