Skip to content

Instantly share code, notes, and snippets.

@ikhattab
Created May 6, 2014 18:18
Show Gist options
  • Save ikhattab/eefd053d3d2c24265599 to your computer and use it in GitHub Desktop.
Save ikhattab/eefd053d3d2c24265599 to your computer and use it in GitHub Desktop.
git remote add upstream THE_SOURCE_REPO
git remote add YOUR_USER_NAME YOUR_FORK
git remote set-url origin THE_SOURCE_REPO
git remote set-url origin --push YOUR_FORK
git config --global push.default current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment