Git tidbits
Keeping a remote fork in sync | |
----------------------------- | |
git status | |
git checkout master | |
git remote -v | |
git remote add upstream https://github.com/lightbend/cloudflow.git | |
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 https://github.com/skonto/cloudflow.git | |
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