Git - Working with branches

test

// check local branches and what branch you are on
git branch 

// check remote branches
git branch -r

Obs: Go to the branch you want branch out, and then run the create branch command. This will give a copy of the branch you are in.

// create branch
git branch <branch name>

//Change branche
git checkout <branch name>

// delete branch locally
git branch -d <localBranchName>

// delete branch remotely
git push origin --delete <remoteBranchName>


You'll only receive email when Teo Oliver publishes a new post

More fromĀ Teo Oliver