Languages

Git - revert local file with Intellij IDEA

1 points
Asked by:
Root-ssh
7497

How do I revert all changes in file with Git from Intellij IDEA UI?

I made changes only locally and I want to revert all changes and go back to the project version.

How to do it?

1 answers
3 points
Answered by:
Root-ssh
7497

Quick solution:

  1. Click 'Version Control' tab
  2. Select file from change list
  3. Second mouse click on this file
  4. Click 'Rever'

Screenshot from Intellij IDEA:

Git - revert local file with Intellij IDEA

0 comments Add comment
Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.