- Worked through the other lessons and left branches all over the place.
-
Checkout master
git checkout master
-
View our local branches
git branch -v
-
View branches that have been merged into master
git branch --merged
-
Delete a single branch
git branch -d addFriends
-
Delete all merged branches
git branch --merged | ?{-not ($_ -like "*master")} | %{git branch -d $_.trim()}
- Navigate to your GitHub Repo (e.g. www.github.com/jesspomfret/GitDemo)
- Click branches (or navigate to e.g. www.github.com/jesspomfret/GitDemo/branches)
- Delete any unneeded branches