Differences

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

Link to this comparison view

Next revision
Previous revision
git_fetch_pull_push [2019/03/08 09:54] – created rpjdaygit_fetch_pull_push [2019/04/04 03:20] (current) – [Pushing] rpjday
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 =====
 +
 +<code>
 +$ git push origin thisbranch:thatbranch
 +$ git push origin --delete <branchname>
 +</code>
 +
 +
 +
 +
  • git_fetch_pull_push.1552038876.txt.gz
  • Last modified: 2019/03/08 09:54
  • by rpjday