Skip to content

Instantly share code, notes, and snippets.

@rheajt
Created February 23, 2017 06:42
Show Gist options
  • Select an option

  • Save rheajt/2e4cf6788ff43700e6f22875ef79b8ca to your computer and use it in GitHub Desktop.

Select an option

Save rheajt/2e4cf6788ff43700e6f22875ef79b8ca to your computer and use it in GitHub Desktop.
git remote tools

Commit your changes.

project_dir$ git add -A
project_dir$ git commit -am "import changes made"

Now you need to add an upstream remote and pull any changes that have been made while you were working.

project_dir$ git remote add upstream <<ORIGINAL REPO>>
project_dir$ git pull upstream master

Everything is up to date. Now we need to push our changes back to our forked repo.

project_dir$ git push origin master

Now you are ready to create the pull request on Github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment