Thanks for the reply. although I was hoping you would tell me
something that can be done from the GUI. So I guess I will be on that
learning curve for a while.


On Sep 30, 2:37 am, Marius Mårnes Mathiesen
<marius.mathie...@gmail.com> wrote:
> Mercenary
>
> On Wed, Sep 30, 2009 at 11:53 AM, Mercenary <abehi...@gmail.com> wrote:
> >  I am trying out git right now on windows(msysGIT) and I think it is a
> > great VC system  but it can be tedious to use at times. Say that I
> > want to undo a change to a file, to which had already committed to. My
> > understanding is that I can use git revert hashcode to undo a specific
> > change. The hash code you see in GIT log are 140 bytes long, therefore
> > that means alot of typing just undo a change. Is there some kind of
> > plugin or addon I can use to copy and paste to and from the GIT BASH
> > console?
>
> First of all, you don't need to enter the entire sha to identify a commit,
> the first few letters will usually be sufficient. So if your commit's sha is
> 5d17b1fcb08fb5aefc9d030250ffd58c4631dcd8, you should be able to get by by
> entering
>
>   git revert 5d17b
>
> as long as this is the only commit in your repository that starts with that
> part of the sha. But you can also specify a commit by its relation to a
> known branch/tag in git. If you enter "git help rev-parse" on your command
> line and locate the "SPECIFYING REVISIONS" section you'll find lots of
> helpful hints to get you going.
>
> The git source distribution also contains a set of bash completion functions
> (see contrib/completions in the source tree) that should be useful for
> command line completion.
>
> Good luck!
>
> - Marius
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to 
gitorious+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/gitorious?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to