i have 2 remotes origin , fork. want achieve make git pull pull origin , make git push push fork.
- one approach set different urls pull , push in
.git/config.urlpull.pushurlpush. https://stackoverflow.com/a/7420741/431698 mentions method. - the other use
git remote set-urlseturl,git remote set-url --pushsetpushurl. approach same thing method 1. https://stackoverflow.com/a/15903520/431698 mentions method. - use
remote.pushdefault. https://stackoverflow.com/a/18562564/431698 mentions method.
is there method achieve goal?
Comments
Post a Comment