Re: Binary files in a linear repository
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Nov 2, 2009, 15:48 UTC
- Message-ID
- <20091102154831.GC27126@dpotapov.dyndns.org>
- In-Reply-To
- <8470D32E-2CAA-4E3F-8BA0-B4578372A3C4@jump-ing.de>
On Mon, Nov 02, 2009 at 04:08:25PM +0100, Markus Hitter wrote:
Show 7 quoted lines
> > Now I'm thinking about a much simpler solution: Simply declare the > current set of files as (a modified) master/com005 and commit them. A > "cp $GIT_DIR/master $GIT_DIR/HEAD" followed by a commit would do it. > > Now my question: Is it safe to tweak the files in $GIT_DIR this way or > will this corrupt the repository?
You probably should use 'git update-ref' if you want to change HEAD manually. But it seems to me that you do not need even that. All what you need is:
$ git reset --soft master
and then commit your changes (git reset --soft does not touch the index file nor the working tree at all).
Dmitry