Skip to content

Instantly share code, notes, and snippets.

@kushal-r
Last active February 5, 2020 06:04
Show Gist options
  • Select an option

  • Save kushal-r/f41474a1827699d99247e1a83d753e79 to your computer and use it in GitHub Desktop.

Select an option

Save kushal-r/f41474a1827699d99247e1a83d753e79 to your computer and use it in GitHub Desktop.
$ git remote add upstream git://github.com/kuroy/github-services.git
$ git fetch upstream
# then: (like "git pull" which is fetch + merge)
$ git merge upstream/master master
OR
# or, better, replay your local work on top of the fetched branch
# like a "git pull --rebase"
$ git rebase upstream/master
$ git push
DELETE REPO
git branch -rd origin/bugfix
git push origin --delete bugfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment