Re: How can i find the origin of a branch?
- From
- Dotan Barak <dotanba@gmail.com>
- Date
- Jun 15, 2009, 13:34 UTC
- Message-ID
- <2f3bf9a60906150634p18e67e71q6e5e7cbb8df1d8c4@mail.gmail.com>
- In-Reply-To
- <2f3bf9a60906150503p69e992b4m18bdc2cc842b933e@mail.gmail.com>
Thanks, your suggestion helped, but there is one problem:
I noticed that if there is only one branch, the entry branch.<branch_name>.merge doesn't exist. Even if there is more than one remote URLs.
Dotan
On Mon, Jun 15, 2009 at 3:03 PM, Dotan Barak<dotanba@gmail.com> wrote:
Show 24 quoted lines
> Thank you very much for a quick and exact answer > :) > > Dotan > > > On Mon, Jun 15, 2009 at 2:57 PM, Kristian Amlie<kristian.amlie@nokia.com> wrote: >> ext Dotan Barak wrote: >>> Hi. >>> >>> Is it possible to find the origin of a branch? >>> (the remote repository that this branch was cloned and checked out from) >> >> git config -l >> >> Assuming you're on the master branch, branch.master.remote and >> branch.master.merge will tell you which remote and which branch you are >> tracking. Assuming that the remote is origin, you can check >> remote.origin.url to see the URL of the repo. >> >> -- >> Kristian >> >