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
git_fetch_pull_push [2019/03/08 10:02] rpjdaygit_fetch_pull_push [2019/04/04 03:20] (current) – [Pushing] rpjday
Line 2: Line 2:
  
 Fetching, pulling and pushing. Fetching, pulling and pushing.
 +
 +===== Fetching =====
 +
 +<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>
 +$ git fetch [-p|--prune]]
 +</code>
 +
 +===== Pushing =====
 +
 +<code>
 +$ git push origin thisbranch:thatbranch
 +$ git push origin --delete <branchname>
 +</code>
 +
 +
  
  
  • git_fetch_pull_push.1552039349.txt.gz
  • Last modified: 2019/03/08 10:02
  • by rpjday