Methods to make git pull from one remote and push to another remote? -


i have 2 remotes origin , fork. want achieve make git pull pull origin , make git push push fork.

  1. one approach set different urls pull , push in .git/config. url pull. pushurl push. https://stackoverflow.com/a/7420741/431698 mentions method.
  2. the other use git remote set-url set url , git remote set-url --push set pushurl. approach same thing method 1. https://stackoverflow.com/a/15903520/431698 mentions method.
  3. use remote.pushdefault. https://stackoverflow.com/a/18562564/431698 mentions method.

is there method achieve goal?


Comments