Reputation: 23502
I have two remotes, origin
with read-only permissions, and my own private
repository.
I cloned the project from origin
and will push changes to private
, but still want pull from the origin
by default.
How do I define the remote downstream or upstream tracking branch in git?
Upvotes: 2
Views: 1292
Reputation: 679
git remote set-url --push private <your-repo-url>
You can see your pull and push remote branch link by -
git remote -v
Please verify if the remote link has been changed.
Upvotes: 5