Add github PR checkout instruction
This commit is contained in:
parent
ee23a836d8
commit
b9648e0f2e
5
git.md
5
git.md
|
@ -40,3 +40,8 @@
|
|||
- Checkout branch `git checkout -b <someRemoteName>/<branch> <fullRemoteBranchName>`
|
||||
- Commit changes
|
||||
- Push: `git push <someRemoteName> HEAD:<branch>`
|
||||
|
||||
## Checkout Github PR
|
||||
- Checkout with same name as on remote: `git fetch origin pull/$ID/head`
|
||||
- Checkout with same name `<NAME>`: `git fetch origin pull/$ID/head:<NAME>`
|
||||
|
||||
|
|
Loading…
Reference in New Issue