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

Next revision
Previous revision
Last revision Both sides next revision
git_fetch_pull_push [2019/03/08 09:54]
rpjday created
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 ​=====
  
-==== Pruning deleted upstream branches ====+<​code>​ 
 +$ git fetch [origin] 
 +$ git fetch ln 
 +$ git fetch --all 
 +</​code>​ 
 + 
 +Before fetching, remove any remote-tracking references that no longer exist on the remote.
  
 <​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