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
git_fetch_pull_push [2019/03/08 10:02]
rpjday
git_fetch_pull_push [2019/04/04 03:20]
rpjday [Pushing]
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.txt ยท Last modified: 2019/04/04 03:20 by rpjday