Re: Reverting a specific commit
- From
John Tapsell <johnflux@gmail.com>
- Date
- Sep 23, 2010, 07:17 UTC
- Message-ID
- <AANLkTikB2A99zXvp8kyajkT63y3HuPMKyTgDg+HJUCLN@mail.gmail.com>
- In-Reply-To
- <1285226023268-5561992.post@n2.nabble.com>
On 23 September 2010 08:13, milindkanchan <milindkanchan@gmail.com> wrote:
Show 8 quoted lines
> > 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