Changing git origin to point to an existing repository
Posted
by int3
on Stack Overflow
See other posts from Stack Overflow
or by int3
Published on 2010-05-19T20:21:01Z
Indexed on
2010/05/19
20:40 UTC
Read the original article
Hit count: 168
git
I'd like to make my local repo point to a different fork of the same project. Will this work?
- Do a merge with the 'target origin'
- Change the origin repo in my config file to the 'target origin'
Also, if my local repo is not entirely identical to the new origin (say, I've resolved some merge conflicts in my favor), will these changes be pushed to the new origin when I do a git push
, or will only commits made after the change of origin get pushed?
© Stack Overflow or respective owner