💻
Dev Notes
  • Dev notes
  • Back end
  • books
  • Front End
  • Platforms in which you can improve your skills
  • Run local Jekyll site
  • Recommended podcasts you should listen to
  • Tools
  • code
    • REST
  • docker
    • Docker cli commands
  • git
    • Changing author info
    • Working with Github organizations
    • Working with upstream
  • npm
    • NPM cli
  • unix
    • Mac OS
    • Raspberry Pi
    • Terminal
Powered by GitBook
On this page

Was this helpful?

  1. git

Working with upstream

# add the original repository as remote repository called "upstream"
git remote add upstream https://github.com/OWNER/REPOSITORY.git

# fetch all changes from the upstream repository
git fetch upstream

# switch to the master branch of your fork
git checkout master

# merge changes from the upstream repository into your fork
git merge upstream/master
PreviousWorking with Github organizationsNextnpm

Last updated 5 years ago

Was this helpful?