On Thu, Feb 28, 2019 at 01:34:59PM +0000, Philip Oakley wrote:

(Reversed order of quoted blocks.)

>> when I fetched the particular branch named "develop" from remote
>> repository
>> 
>> the console outputs the result below
>> 
>> * branch            develop -> FETCH_HEAD
>>    bada8af..6d2389b  develop -> origin/develop
>> 
>> I barely understood "bada8af" is the hash name of develop's HEAD and
>> "6d2389b" is the name of tracking branch's HEAD hash name.
>> But i do not know what is the asterisk of the first line?
>> and what is  "->" mean in  "develop    -> FETCH_HEAD"
>> because develop branch  is not merged to FETCH_HEAD.
> The asterisk ('*') is a marker to indicate the current branch.
> 
> The '->' symbolised 'has moved to', so we have that the special variable
> FETCH_HEAD now hold the hash name of the develop branch.

I would still say it's not a "special variable" but rather a "special
reference" - to stay within the official Git lingo.

To the OP: a reference in Git is any symbolic name which refers to
something. Branches and tags are references, and so are special ones -
such as HEAD, ORIG_HEAD, FETCH_HEAD, MERGE_HEAD and so on.

[...]

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to