github - Changing remote git repository -


i have cloned repo local folders , wanted change git repository other url. have changed using

git remote set-url origin git://new.url.here 

and when doing

git remote -v 

it shows me correct repository in want work.but when

git branch --all 

it shows me old branches in old repository. wondering why?? new repo doesn't have branches yet.

you in fact seeing local copies of old remote branches. use git remote prune origin remove them. on safe side, it's recommended run git remote prune origin --dry-run first, see removed before removing it.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -