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_adding_remotes [2019/03/08 13:31] – [Fetching the new remote] rpjdaygit_adding_remotes [2019/03/08 14:46] (current) – [Fetching the new remote] rpjday
Line 57: Line 57:
 in-pack: 6542717 in-pack: 6542717
 packs: 1 packs: 1
-size-pack: 2684971+size-pack: 2684927
 prune-packable: 0 prune-packable: 0
 garbage: 0 garbage: 0
Line 91: Line 91:
 in-pack: 6586085 in-pack: 6586085
 packs: 2 packs: 2
-size-pack: 2723660+size-pack: 2723617
 prune-packable: 0 prune-packable: 0
 garbage: 0 garbage: 0
Line 132: Line 132:
   $   $
 </code> </code>
 +
 +==== Explicitly track a remote branch ====
 +
 +If there is a conflict with branch names:
 +
 +<code>
 +$ git checkout -b lnmaster --track ln/master
 +Branch 'lnmaster' set up to track remote branch 'master' from 'ln'.
 +Switched to a new branch 'lnmaster'
 +$
 +</code>
 +
 +===== Deleting a remote =====
 +
 +<code>
 +$ git fsck --no-reflogs
 +Checking objects: 100% (6708499/6708499), done.
 +Checking connectivity: 6708499, done.
 +$
 +</code>
 +
 +<code>
 +$ git remote remove ln
 +$ git remote
 +origin
 +$
 +</code>
 +
 +
  • git_adding_remotes.1552051908.txt.gz
  • Last modified: 2019/03/08 13:31
  • by rpjday