Skip to content

Instantly share code, notes, and snippets.

@sebw
Last active May 3, 2019 08:09
Show Gist options
  • Save sebw/86028ebe5c07878a003450943b0ea965 to your computer and use it in GitHub Desktop.
Save sebw/86028ebe5c07878a003450943b0ea965 to your computer and use it in GitHub Desktop.
merge upstream/develop into own fork
function git-sync-fork()
{
cd /srv/repo
git remote add upstream git@git.example.org:upstream/repo.git
git fetch upstream
git checkout develop
git merge upstream/develop
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment