seveas / git-spindle

Abandoned command-line interface to GitHub and other central git services
Other
172 stars 35 forks source link

clone and fork should set remote.pushDefault to origin #119

Closed Vampire closed 6 years ago

Vampire commented 8 years ago

If you do git hub fork, it would be nice if additionally remote.pushDefault would be set to origin, because that supports the common use-case. I make a new branch for the changes of a PR with git checkout -b my-nifty-change upstream/master, then I prepare the branch, push it to origin and create a PR, then some further changes need to be made and again pushed to origin. Usually you don't have push access to upstream anyway and even if you would have, you shouldn't do it in a PR-based model, but push to the PR branch in your fork.