User Tools

Site Tools


git_fetch_pull_push

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
git_fetch_pull_push [2019/03/08 09:56]
rpjday [Pruning]
git_fetch_pull_push [2019/04/04 02:50]
rpjday [Fetching]
Line 1: Line 1:
 ===== Overview ===== ===== Overview =====
  
-Fetching, pulling, pushing ​and pruning.+Fetching, pulling and pushing.
  
-===== Pruning ​=====+===== Fetching ​=====
  
-==== Introduction ====+<​code>​ 
 +$ git fetch [origin] 
 +$ git fetch ln 
 +$ git fetch --all 
 +</​code>​
  
-See ''​man git-fetch''​section "​PRUNING"​. +Before fetchingremove any remote-tracking references that no longer exist on the remote.
- +
-==== Pruning deleted upstream branches ====+
  
 <​code>​ <​code>​
-$ git branch -r +$ git fetch [-p|--prune]]
-  origin/HEAD -> origin/​master +
-  origin/​WIP-syscall +
-  origin/​master +
-  origin/​proc-cmdline +
-$ git fetch --prune +
-From https://​git.kernel.org/​pub/​scm/​linux/​kernel/​git/​torvalds/​linux +
- ​- ​[deleted] ​                  ​(none) ​    -> origin/WIP-syscall +
- [deleted                  (none) ​    -> origin/​proc-cmdline +
-$ git branch -r +
-  origin/HEAD -> origin/​master +
-  origin/​master +
-$+
 </​code>​ </​code>​
 +
 +===== Pushing =====
 +
 +
 +
 +
 +
 +
git_fetch_pull_push.txt · Last modified: 2019/04/04 03:20 by rpjday