Re: little conundrum
- From
Alan Chandler <alan@chandlerfamily.org.uk>
- Date
- Nov 3, 2005, 22:02 UTC
- Message-ID
- <200511032202.18900.alan@chandlerfamily.org.uk>
- In-Reply-To
- <Pine.LNX.4.63.0511031845410.3435@wbgn013.biozentrum.uni-wuerzburg.de>
On Thursday 03 Nov 2005 17:47, Johannes Schindelin wrote:
Show 20 quoted lines
> Hi, > > On Thu, 3 Nov 2005, Alan Chandler wrote: > > I would like to make myself a git repository that contains at the start, > > an initial commit of the original downloaded source code, and a second > > commit on the top of that that contains the the current state of play > > after the changes I have made. > > How about this: > > cd orig/ > git-init-db > git-add $(find * -type f) > git-commit -m "initial" > cd ../modified > mv ../orig/.git ./ > git-add $(find * -type f) > git-commit -a -m "my modifications" > > Of course -- in the great tradition of this list -- totally untested.
Also untested, but what about removing the files from the index that aren't in the working directory?
-- Alan Chandler http://www.chandlerfamily.org.uk Open Source. It's the difference between trust and antitrust.