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
.url
pull.pushurl
push. https://stackoverflow.com/a/7420741/431698 mentions method. - the other use
git remote set-url
seturl
,git remote set-url --push
setpushurl
. 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