github Drupal "update fork"

Public

Károly Négyesi (via DrupalFire) snippet/Pull from Upstream, Push to own Repo

</> CopyGet raw version
text
  1. It really frustrates me that while github nicely automated forking, there's no "update fork" button. For me, it's tedious and difficult to juggle two remotes. Instead, I added a single line to .git/config:
  2. [remote "origin"]
  3. url = git@github.com:symfony/symfony.git
  4. pushUrl = git@github.com:chx/symfony.git
  5. Now, I pull from the upstream and push to my own repo. Also, git config push.default current will make git push work on a newly opened branch instead of whining about the need to run git push -u origin branchname. I like it so much I have git config --global push.default current.
  6. Károly Négyesi (via DrupalFire) snippet/Pull from Upstream, Push to own Repo