Git - Working with branches


// 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 they publish something new.

More from Teo Oliver