The central
repository had to be set up on a new server, so I created a new remote on my local repo, and pushed to that.
But now when I do git pull
, it claims I am up to date. It's wrong—it's telling me about the old remote branch, not the new one, which I know for a fact has new commits to fetch.
How do I change my local branch to track a different remote?
I can see this in the git config file but I don't want to mess things up.
[branch "master"]
remote = oldserver
merge = refs/heads/master
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…