Showing posts with label branch. Show all posts
Showing posts with label branch. Show all posts

Friday, November 20, 2009

Delete remote tracking branch in git


# Show remote branches tracked
git branch -r

# Delete one by one
git branch -d -r origin/branch

# Delete with one swoop
git remote prune origin

Monday, October 5, 2009

Rename current branch in Git


# Accidentally created branch with name "1234"
git checkout -b 1234

# Renames current branch to "1234-feature-admin_looks_good"
git branch -m 1234-feature-admin_looks_good