From: milindkanchan <milindkanchan@gmail.com>
To: git@vger.kernel.org
Subject: Reverting a specific commit
Date: Thu, 23 Sep 2010 00:13:43 -0700 (PDT) [thread overview]
Message-ID: <1285226023268-5561992.post@n2.nabble.com> (raw)
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 ?
Eg. One of our X developer has committed the code in master branch last
week, after which there were several commits to master branch, now there was
an issue with the code committed by X developer and now I need to
revert/discard just his commit keeping the other commits done after him as
intact.
Can anybody give a solution for this with all the commands.
Thanks & Regard
M.K
--
View this message in context: http://git.661346.n2.nabble.com/Reverting-a-specific-commit-tp5561992p5561992.html
Sent from the git mailing list archive at Nabble.com.
next reply other threads:[~2010-09-23 7:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-23 7:13 milindkanchan [this message]
2010-09-23 7:17 ` Reverting a specific commit John Tapsell
2010-09-23 7:17 ` Pascal Obry
2010-09-23 8:01 ` milindkanchan
2010-09-23 9:05 ` Pascal Obry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1285226023268-5561992.post@n2.nabble.com \
--to=milindkanchan@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).