Revert particular commit, without impacting following ones

git
commit
revert

#1

Hi, I would like to revert a particular commit, without this revert having an impact on the commits that follow. Is this possible?


#2

Yes, you can do this with the command GIT REVERT.

However, if files were edited in the following commits, that are also in the commit you want to revert, this could lead to conflicts.

Following a link to Atlassian’s documentation on undoing changes in Git:


To continually improve and optimize our website for you, we use cookies. By continuing to use this website, you agree to the use of cookies. OK Details