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

Issue on git revert. Git is not reverting code completely

From
SKSurajit Koly <surajitk@thegates.biz>
Date
Dec 2, 2024, 06:59 UTC
Message-ID
<CANzu-ccm9C9G+awBq7SKRnYgSg0TeM4b5xgJk-VvmDcN_KJ0hA@mail.gmail.com>

Hi, I am getting an issue while reverting a commit. After reverting, I can see that the changes that I made are not reverted completely. I am sharing the details below

GIT version: git version 2.42.0.windows.2
Original git commit on 29th July 2024
----------------
commit added79cb5aaa60ffced49ee4d3f6c9b3131abde
Author: Surajit Koley <surajitk@thegates.biz>
Date:   Mon Jul 29 15:00:24 2024 +0530
    Implement Parameterize sql at user models
    Implement parameterized sql at
    models/user.js
    models/userV2.js
Commit link: https://gitlab.com/gatesapac/forum/-/commit/added79cb5aaa60ffced49ee4d3f6c9b3131abde
Git revert commit on 13th Nov 2024
--------------
commit 582797adad70d3bfe6c6d74aeed2f795013ca41f
Author: Surajit Koley <surajitk@thegates.biz>
Date:   Wed Nov 13 14:29:11 2024 +0530
    Revert "Implement Parameterize sql at user models"
    This reverts commit added79cb5aaa60ffced49ee4d3f6c9b3131abde.
Commit link: https://gitlab.com/gatesapac/forum/-/commit/582797adad70d3bfe6c6d74aeed2f795013ca41f

I am sharing screenshots of commit added79cb5aaa60ffced49ee4d3f6c9b3131abde and revert commit 582797adad70d3bfe6c6d74aeed2f795013ca41f

Message 1 of 1 in “Issue on git revert. Git is not reverting code completely”
  1. Surajit KolyDec 2, 2024

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.