Git commands
Checkout PR
git fetch origin pull/<pr-number>/head && git checkout FETCH_HEAD
Switch to different repo in the same repo
vi .git/config
Change url
parameter
git fetch --all --prune
git pull --all
How to rebase
Checkout <repo-to-rebase>
via VS Code UI
git checkout -b <temporary-repo-for-rebasing> <repo-to-rebase>
git pull <upstream-repo-which-is-used-for-rebase> <upstream-branch>
If VS Code is used, fix merge issues via UI (use Accept Current Change
and safe)
Click on +
to stage stuff and ✔
(Commit)
git checkout <repo-to-rebase>
git merge --no-ff <temporary-repo-for-rebasing>
Sync via UI