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
Post a Comment