Skip to content

Instantly share code, notes, and snippets.

@a1300
Last active June 5, 2018 09:03
Show Gist options
  • Save a1300/c37cc0a423aa7a6d64486c6e400417d8 to your computer and use it in GitHub Desktop.
Save a1300/c37cc0a423aa7a6d64486c6e400417d8 to your computer and use it in GitHub Desktop.
Git Wiki

How to update a local git repository if your forked version is not up to date with the original repository

git remote add original repository-address

View the local remote-origins git remote -v

git merge original master

git push origin master

How to review a pull request

For instance I want to review a pull request on https://github.com/aschplatform/asch with the number #188

# clone repository
git clone https://github.com/aschplatform/asch`

git fetch origin pull/188/head:pull_188
git checkout pull_188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment