From: Junio C Hamano Date: Mon, 19 Jan 2009 09:16:23 GMT Subject: Re: how to omit rename file when commit Message-ID: <7v63kbr6zc.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1976ea660901190113l5407f108lff8f37d9a8331f58@mail.gmail.com> "Frank Li" writes: > For example there are a file a.c at git repository. > use > git mv a.c b.c > > git status: > # On branch master > # Changes to be committed: > # (use "git reset HEAD ..." to unstage) > # > # renamed: a.c -> b.c > > If we don't want to stage this change at this commit, what can I do? I may be misunderstanding what you want to do, but wouldn't "git mv b.c a.c" undo whatever you did?