[Grml] OT, misc git questions

Richard Hartmann richih.mailinglist at gmail.com
Mon Oct 20 22:29:58 CEST 2008


On Mon, Oct 20, 2008 at 22:16, T o n g <mlist4suntong at yahoo.com> wrote:

> sorry that I didn't make it clear. I meant, having realized that a change
> I shouldn't have made, how to revoke the file to the original stage, to
> the same version as the remote master version, but just this specific
> file?

Unless a commit was for one file only, there is no trivial way to do so.
Create a branch, revert to the state you want, copy the file to somewhere,
go back to the other branch, copy back the file, commit and prune the
other branch...


Richard


More information about the Grml mailing list