Re: Switching between branches
- From
Petr Baudis <pasky@ucw.cz>
- Date
- Apr 21, 2005, 16:39 UTC
- Message-ID
- <20050421163958.GI30991@pasky.ji.cz>
- In-Reply-To
- <pan.2005.04.21.14.12.46.905838@smurf.noris.de>
Dear diary, on Thu, Apr 21, 2005 at 04:12:49PM CEST, I got a letter where Matthias Urlichs <smurf@smurf.noris.de> told me that...
Show 17 quoted lines
> Hi, Petr Baudis wrote: > > > Hello, > > > >> Perhaps it's a naive question, but how do I switch between branches? I > >> mean an equivalent of "svn switch" or "cvs update -r branch" that would > >> reuse the existing working directory. > > > > you can't. There was 'git update' (and intermediate never-committed 'git > > switch'), but I decided not to support it for now, since I don't have any > > compelling usage case for it. > > I do -- I have a project which builds several slightly-customized versions, > and I'd like to keep the generated objects around if possible. > > So I just build one version, then "git cancel FOO" to the next version, > and let the make rules take care of rebuilding what needs to be rebuilt.
I suppose we could do with git switch then.
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor