Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/2] tutorial: Use "git remote add"

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:49

Santi Béjar [off-list ref] writes:
quoted hunk
@@ -285,10 +285,12 @@ at /home/bob/myrepo.  She does this with:
 
 ------------------------------------------------
 $ cd /home/alice/project
-$ git pull /home/bob/myrepo master
+$ git remote add bob /home/bob/myrepo
+$ git pull bob master
 ------------------------------------------------
I'd prefer to leave this as is, because I think ad-hoc
promiscous pull shows the distributed nature of git better, and
add a new step after that to teach "remote add", telling the
user that "having to use longhand every time is tiresome, so
there is a nifty way to define a shorthand for a remote
repository you interact with often".

Other than that, I agree with the direction of your change to
use separate remote layout instead of mixed "incoming" branches.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help