• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • FREE webinar: What does a post IR35 reform CV look like? : Wed, Jul 28, 2021 7:15 PM - 8:15 PM BST More details here.

Git experts - Revert a change in the middle

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Git experts - Revert a change in the middle

    Is it possible to revert a change that is in the middle of multiple changes?

    Imagine I have made numerous changes

    revision-9
    revision-8
    ....
    ....
    revision-5
    ...
    ...
    revision-1

    Is there a way to revert / undo only revision-5?
    Scenario-1 = revision-5 has unique files
    Scenario-2 = revision-5 has files that has been changed further in other revisions such as 8,9

    #2
    Yes, and here's link that explains it

    How to revert a git commit: A simple undo changes example

    Comment


      #3
      Originally posted by BigDataPro View Post
      Is it possible to revert a change that is in the middle of multiple changes?
      If you're on Windows it's a doddle using 'TortoiseGit'

      From git - How to revert a particular commit using TortoiseGit? - Stack Overflow

      "TortoiseGit -> Show Log, then select this commit, press right button and select from context menu: Revert Change by this commit."

      Comment

      Working...
      X