Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_fetch_pull_push [2019/03/08 09:56] – [Pruning] rpjday | git_fetch_pull_push [2019/04/04 03:20] (current) – [Pushing] rpjday | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | Fetching, pulling, pushing | + | Fetching, pulling and pushing. |
| - | ===== Pruning | + | ===== Fetching |
| - | ==== Introduction ==== | + | < |
| + | $ git fetch [origin] | ||
| + | $ git fetch ln | ||
| + | $ git fetch --all | ||
| + | </ | ||
| - | See '' | + | Before fetching, remove any remote-tracking references that no longer exist on the remote. |
| - | ==== Pruning deleted upstream branches | + | < |
| + | $ git fetch [-p|--prune]] | ||
| + | </ | ||
| + | |||
| + | ===== Pushing ===== | ||
| < | < | ||
| - | $ git branch -r | + | $ git push origin |
| - | | + | $ git push origin --delete < |
| - | origin/ | + | |
| - | origin/ | + | |
| - | origin/ | + | |
| - | $ git fetch --prune | + | |
| - | From https:// | + | |
| - | - [deleted] | + | |
| - | - [deleted] | + | |
| - | $ git branch -r | + | |
| - | origin/HEAD -> origin/ | + | |
| - | origin/ | + | |
| - | $ | + | |
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||