Intellij git revert a commit

dimzak

I was using Eclipse and Egit for a long time and decided to try Intellij.
So far so good, except one thing...
I can't find an easy way to revert an old commit from my repo!!!

In Eclipse the standard process was: Go to Git Workspace -> Click Show History(Right Click Project) -> RIght-Click on the commit I want to revert and press Revert Commit.

In Intellij I can't find anything equivalent. Tried VCS -> Show Changes View but there I can only cherry pick a commit. I also played with the revert option under VCS -> git but got confused by the changelist thing(That may hide the answer, but I don't understand how it works).

I can still revert the commit by issuing git revert <sha> from terminal but that's what I was trying to avoid in the first place by using git from Intellij and not pure terminal.

Is there a way to do easily the revert in Intellij?

c0stra

If you go to Changelist -> Log, and there select the commit, you've got a change detail in the right panel. There you can select all and click a button (or right click -> revert selected changes).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Git + Intellij - How to revert a local commit?

From Java

How to revert initial git commit?

From Java

Revert to a commit by a SHA hash in Git?

From Dev

Revert Git Commit in local system

From Dev

How to revert a unpushed git commit

From Java

What is the difference between "Revert Commit" and "Undo Commit" in IntelliJ IDEA?

From Dev

How to revert a specific file in a old commit on git

From Dev

revert the git last commit and save it in a different branch

From Dev

Can git split a commit that was upstream using a revert?

From Dev

git revert on single lines in single file of commit

From Dev

Will git revert overwrite my cherry pick commit?

From Dev

git revert --no-commit without staging

From Dev

Git: Revert old commit on single file

From Dev

How can I revert back to a Git commit?

From Dev

Git undo unpushed commit after merge revert

From Dev

Git revert certain parts of large commit

From Dev

git revert on single lines in single file of commit

From Dev

Git revert merge commit, lost some files

From Dev

Appending string to git revert commit message without opening editor

From Dev

Git: revert (or rebase -i) a bad commit out of production

From Java

How do I "un-revert" a reverted Git commit?

From Java

How do I revert a Git repository to a previous commit?

From Dev

Avoid the effects of a revert commit in another Git branch while merging

From Dev

revert the git last commit and apply it to github for deployment scripts

From Dev

Git fails to revert: Found a swap file "COMMIT_EDITMSG.swp"

From Dev

Git: How to revert a symlink commit which replaced a submodule?

From Dev

Git & CI: How to tag if build passes/revert commit if fails?

From Dev

Git : revert to old version for particular file with checkout command and commit

From Dev

GIT cannot revert to prior commit - remote won't accept push

Related Related

  1. 1

    Git + Intellij - How to revert a local commit?

  2. 2

    How to revert initial git commit?

  3. 3

    Revert to a commit by a SHA hash in Git?

  4. 4

    Revert Git Commit in local system

  5. 5

    How to revert a unpushed git commit

  6. 6

    What is the difference between "Revert Commit" and "Undo Commit" in IntelliJ IDEA?

  7. 7

    How to revert a specific file in a old commit on git

  8. 8

    revert the git last commit and save it in a different branch

  9. 9

    Can git split a commit that was upstream using a revert?

  10. 10

    git revert on single lines in single file of commit

  11. 11

    Will git revert overwrite my cherry pick commit?

  12. 12

    git revert --no-commit without staging

  13. 13

    Git: Revert old commit on single file

  14. 14

    How can I revert back to a Git commit?

  15. 15

    Git undo unpushed commit after merge revert

  16. 16

    Git revert certain parts of large commit

  17. 17

    git revert on single lines in single file of commit

  18. 18

    Git revert merge commit, lost some files

  19. 19

    Appending string to git revert commit message without opening editor

  20. 20

    Git: revert (or rebase -i) a bad commit out of production

  21. 21

    How do I "un-revert" a reverted Git commit?

  22. 22

    How do I revert a Git repository to a previous commit?

  23. 23

    Avoid the effects of a revert commit in another Git branch while merging

  24. 24

    revert the git last commit and apply it to github for deployment scripts

  25. 25

    Git fails to revert: Found a swap file "COMMIT_EDITMSG.swp"

  26. 26

    Git: How to revert a symlink commit which replaced a submodule?

  27. 27

    Git & CI: How to tag if build passes/revert commit if fails?

  28. 28

    Git : revert to old version for particular file with checkout command and commit

  29. 29

    GIT cannot revert to prior commit - remote won't accept push

HotTag

Archive