Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Git tidbits
Keeping a remote fork in sync
git status
git checkout master
git remote -v
git remote add upstream
git remote -v
git fetch upstream
git pull upstream master
git push origin master
Take ownership of a PR from another user
github user : skonto
PR branch : port-blueprint-verification
git remote -v
git remote add skonto
git fetch skonto port-blueprint-verification
git branch --track port-blueprint-verification skonto/port-blueprint-verification
git checkout port-blueprint-verification
git add / commit .. # make changes
git push skonto port-blueprint-verification
# check PR updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment