TIP 1
If you want to delete a branch and switch to another one and you have a problem like:
error: Untracked working tree file '...' would be overwritten by merge.
the following solution may help
git add .
git commit -m "You are gonna be deleted!"
git checkout next
git branch -d branch_to_delete
TIP 2
If I want to delete a local branch and a remote:
git branch git branch -d layout_for_demo1 git push origin :layout_for_demo1
TIP 3
If I want to delete a remote that is not on my local repo:
git remote show origin
git push origin :remote_to_delete
June 4th, 2010 on 04:14
Great information! I’ve been looking for something like this for a while now. Thanks!