Wednesday, September 28, 2016

Git - branches

git branch - Which branch am I on?

git branch <new_branch> - Create a new branch

git checkout <branch_name> - Switch to different branch

git merge <branch_name> - Merge branch_name into my current branch?

git branch -d <branch_name> - Delete the branch no longer needed