minte9
LearnRemember / GIT





Create

This only creates a branch, it doesn't switch to that branch.
 
git branch testing
Create a branch and switch to it.
 
git checkout -b dev
    // create a branch and switch to it

git checkout master

Delete

 
git branch -d myBranch



  Last update: 695 days ago


Questions and answers:




Create a branch

  • a) git checkout test
  • b) git branch test

Create branch and switch to it

  • a) git checkout -b dev
  • b) git branch -d dev


References and applications: