How to check old git transaction in Android Studio?

I would like to see the old commit of my application in Android Studio to compile and run it. I don't want reset to go back to the previous commit or change the commit history or something like that. When I did, I want to return to the latest version.

On the command line it will be simple

git checkout <hash> 

So how can I do this in Android Studio?

I havent tried to do this on the command line, because Im fear Android Studio can get heartburn when I modify my files from the outside. Confidence that I can work with git outside of Android Studio without any problems will be fine too.

+5
source share
1 answer

If you want to complete a transaction using Android Studio (or another IntelliJ IDEA-based IDE), go to Version Control view (alt + 9) and go to the Log tab. Enter the commit hash in Filter , right-click the commit record and select the Checkout Revision option.

What else, if you want to work with the command line, just use git from the command line. I work with git using only the command line and nothing bad happened. The only thing you should remember is to wait for reindexing.

+16
source

Source: https://habr.com/ru/post/1246768/


All Articles