Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_remotes [2019/03/08 13:44] – [Adding the linux-next remote] rpjday | git_remotes [2019/04/04 03:23] (current) – removed rpjday | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Overview ===== | ||
| - | |||
| - | Discussion and demonstration of remote tracking branches and adding remotes. | ||
| - | |||
| - | ===== ADD ===== | ||
| - | |||
| - | < | ||
| - | $ git ls-remote [< | ||
| - | $ git remote -v | ||
| - | $ git remote prune | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | $ git fetch --all | ||
| - | $ git push origin thisbranch: | ||
| - | $ git push origin --delete < | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | $ git checkout --track origin/ | ||
| - | $ git checkout -b sf origin/ | ||
| - | $ git branch [-u|--set-upstream-to] origin/ | ||
| - | </ | ||
| - | |||
| - | Shorthand if you're on the '' | ||
| - | |||
| - | < | ||
| - | $ git merge origin/ | ||
| - | $ git merge @{upstream} | ||
| - | $ git merge @{u} | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | $ git fetch [-p|--prune] | ||
| - | </ | ||
| - | |||