* Identifying the branch a clone was cloned from
@ 2010-03-02 21:45 jateeq
2010-03-02 23:15 ` Santi Béjar
0 siblings, 1 reply; 2+ messages in thread
From: jateeq @ 2010-03-02 21:45 UTC (permalink / raw)
To: git
Hey guys,
I have a repository with over 10 branches. I clone from branch 2, and some
time after the operation I need to find out what branch in the remote I
cloned from. Anyone know the command for that?
Thank you,
Jawad.
--
View this message in context: http://old.nabble.com/Identifying-the-branch-a-clone-was-cloned-from-tp27761617p27761617.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Identifying the branch a clone was cloned from
2010-03-02 21:45 Identifying the branch a clone was cloned from jateeq
@ 2010-03-02 23:15 ` Santi Béjar
0 siblings, 0 replies; 2+ messages in thread
From: Santi Béjar @ 2010-03-02 23:15 UTC (permalink / raw)
To: jateeq; +Cc: git
On Tue, Mar 2, 2010 at 10:45 PM, jateeq <jawad_atiq@hotmail.com> wrote:
>
> Hey guys,
>
> I have a repository with over 10 branches. I clone from branch 2, and some
> time after the operation I need to find out what branch in the remote I
> cloned from. Anyone know the command for that?
If you mean from which branch you forked a given branch it is
specified in the branch.<name>.remote and branch.<name>.merge + some
logic. To get it you can use the branchname@{upstream} syntax (new in
1.7.0) or use this command:
git for-each-ref --format='%(upstream)' refs/heads/branchname
But maybe we can help more if you say what you want to accomplish with
this information and not this specific detail.
HTH,
Santi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-02 23:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02 21:45 Identifying the branch a clone was cloned from jateeq
2010-03-02 23:15 ` Santi Béjar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).