Custom Search

Wednesday, November 19, 2014

How To git change url of remote origin and pull without conflict

1)
Set new URL for remote 'origin'

#git remote set-url origin https://github.com/myrepo/MYPRO.git

2)
Fetch data from new remote 'origin'

#git fetch origin

3)
Pull and rebase changes from new remote 'origin'

#git pull --rebase origin
https://www.atlassian.com/git/tutorials/syncing/git-pull

4)
Pull changes from branch 'migration_django_15' in the new remote 'origin'

#git pull origin migration_django_15

No comments:

Post a Comment