Re: git-svn, and which branch am I on?
- From
Björn Steinbrink <b.steinbrink@gmx.de>
- Date
- Feb 28, 2009, 14:54 UTC
- Message-ID
- <20090228145416.GA6289@atjola.homenet>
- In-Reply-To
- <87ljrr7xof.fsf@rimspace.net>
On 2009.02.28 19:50:08 +1100, Daniel Pittman wrote:
Show 7 quoted lines
> G'day. > > I recently got asked a question about git-svn that I had no idea how to > answer, and which I am actually curious to know how to find out. > > The general question was: in git, how do I identify where this branch > came from?
"git svn info" tells you, besides other things, the URL your checked out branch is based upon WRT svn. Use it with "--url" to show only the URL.
> ...and, finally, is the reason that I am finding it hard to explain this > because I have an expectation of how things work that doesn't match up > with git? In other words, is the question actually meaningless?
If you use git-svn, it's actually meaningful, because it controls what svn rebase and svn dcommit do. For a pure git repo, it's usually not that interesting.
Björn