diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-05-22 17:15:51 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-05-22 17:15:51 +0200 |
commit | d515b97f6aba2adcb44a0a86df49a7b94a53df6c (patch) | |
tree | 32800a82f98eabec3548e1dac03c47c3df4a3997 /src/misc/git.md | |
parent | 523291ed5630825f90ec944b7e7cba275d31b3f6 (diff) | |
download | notes-d515b97f6aba2adcb44a0a86df49a7b94a53df6c.tar.gz notes-d515b97f6aba2adcb44a0a86df49a7b94a53df6c.zip |
git: add track remote branch
Diffstat (limited to 'src/misc/git.md')
-rw-r--r-- | src/misc/git.md | 1 |
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 ``` |