Re: Reverting a specific commit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23 September 2010 08:13, milindkanchan <milindkanchan@xxxxxxxxx> wrote:
>
> Hi All,
>
> I am using git for code management.
>
> I have some query regarding reverting the commit in git.
>
> Can we revert a specific commit in git ?

To make a new commit to undo a bad commit:

git revert SHA

where SHA is that long string of numbers and letters associated with
each commit.  do "git log" to find out what the SHA is.

John
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]