git_remotes

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_remotes [2019/03/08 13:44] – [Adding the linux-next remote] rpjdaygit_remotes [2019/04/04 03:23] (current) – removed rpjday
Line 1: Line 1:
-===== Overview ===== 
- 
-Discussion and demonstration of remote tracking branches and adding remotes. 
- 
-===== ADD ===== 
- 
-<code> 
-$ git ls-remote [<remote>] 
-$ git remote -v 
-$ git remote prune 
-</code> 
- 
-<code> 
-$ git fetch --all 
-$ git push origin thisbranch:thatbranch 
-$ git push origin --delete <branchname> 
-</code> 
- 
-<code> 
-$ git checkout --track origin/serverfix 
-$ git checkout -b sf origin/serverfix 
-$ git branch [-u|--set-upstream-to] origin/serverfix 
-</code> 
- 
-Shorthand if you're on the ''master'' branch: 
- 
-<code> 
-$ git merge origin/master 
-$ git merge @{upstream} 
-$ git merge @{u} 
-</code> 
- 
-<code> 
-$ git fetch [-p|--prune] 
-</code> 
- 
  
  • git_remotes.1552052679.txt.gz
  • Last modified: 2019/03/08 13:44
  • by rpjday