How to remove remotes / start / {branch}?

How to delete deleted objects / origin / {branch}?

+6
git
source share
3 answers

use: git remote prune origin

or use git remote prune origin --dry-run to see which branches will be deleted.

Like in git help remote

prunes
Deletes all child branches of remote tracking. These obsolete branches are already removed from the remote repository referenced, but are still locally available in "remotes /".

With the --dry-run option, tell which branches will be trimmed, but not really trimmed.

+9
source share

git push origin :[branch-name] .

Source: http://progit.org/book/ch3-5.html

+3
source share

I suggest you take a look at http://www.git-tower.com/

This is a great GUI for GIT.

-one
source share

All Articles