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 10:02] – rpjday | git_fetch_pull_push [2019/04/04 03:20] (current) – [Pushing] rpjday | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Fetching, pulling and pushing. | Fetching, pulling and pushing. | ||
| + | |||
| + | ===== Fetching ===== | ||
| + | |||
| + | < | ||
| + | $ git fetch [origin] | ||
| + | $ git fetch ln | ||
| + | $ git fetch --all | ||
| + | </ | ||
| + | |||
| + | Before fetching, remove any remote-tracking references that no longer exist on the remote. | ||
| + | |||
| + | < | ||
| + | $ git fetch [-p|--prune]] | ||
| + | </ | ||
| + | |||
| + | ===== Pushing ===== | ||
| + | |||
| + | < | ||
| + | $ git push origin thisbranch: | ||
| + | $ git push origin --delete < | ||
| + | </ | ||
| + | |||
| + | |||