> Sorry but what is {u} supposed to be? The url of the remote server? 

The '@{u}' is a shorthand for '@{upstream}' typed exactly, that modifies 
the given branch name to become the upstream of the given branch, and then 
rev-parse finds its pretty name, and abbrev-ref trims off the leading part 
of the "ref/./.....". 

Worth looking up "@" and its qualifiers ;-) 

On Thursday, December 2, 2021 at 7:45:33 AM UTC o...@ucm.es wrote:

> >>> "PO" == Philip Oakley <philip...@iee.email> writes:
>
> > git rev-parse --abbrev-ref --symbolic-full-name <branchname>@{u}
> > Had to look it up yesterday. Then you need
>
> Sorry but what is {u} supposed to be? The url of the remote server?
>
> I tried out 
> git rev-parse --abbrev-ref --symbolic-full-name master@{git+ssh://
> o...@git.code.sf.net/p/matlab-emacs/src 
> <http://o...@git.code.sf.net/p/matlab-emacs/src>}
>
> Or 
>
> git rev-parse --abbrev-ref --symbolic-full-name master@{origin}
>
> None worked. I surely missed something essential.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/0e58eb21-9368-477f-94e8-2817546b2b54n%40googlegroups.com.

Reply via email to