git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Reverting a specific commit

From
Mmilindkanchan <milindkanchan@gmail.com>
Date
Sep 23, 2010, 07:13 UTC
Message-ID
<1285226023268-5561992.post@n2.nabble.com>
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: John Tapsell
Message 1 of 5 in “Reverting a specific commit”
  1. milindkanchanSep 23, 2010
  2. John TapsellSep 23, 2010
  3. Pascal ObrySep 23, 2010
  4. milindkanchanSep 23, 2010
  5. Pascal ObrySep 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.