aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-05-22 17:15:51 +0200
committerjohannst <johannes.stoelp@gmail.com>2020-05-22 17:15:51 +0200
commitd515b97f6aba2adcb44a0a86df49a7b94a53df6c (patch)
tree32800a82f98eabec3548e1dac03c47c3df4a3997 /src
parent523291ed5630825f90ec944b7e7cba275d31b3f6 (diff)
downloadnotes-d515b97f6aba2adcb44a0a86df49a7b94a53df6c.tar.gz
notes-d515b97f6aba2adcb44a0a86df49a7b94a53df6c.zip
git: add track remote branch
Diffstat (limited to 'src')
-rw-r--r--src/misc/git.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc/git.md b/src/misc/git.md
index d76ae77..a4af0cf 100644
--- a/src/misc/git.md
+++ b/src/misc/git.md
@@ -20,6 +20,7 @@
remote tracking branch
git branch <bname> ............. create branch with name <bname>
git checkout <bname> ........... switch to branch with name <bname>
+ git checkout --track <branch> .. start to locally track a remote branch
git push -u origin <rbname> .... push branch to origin (or other remote), and
setup <rbname> as tracking branch
```