mcfly soft
mcfly soft

Reputation: 11645

How to revert a file from repository with GIT in AndroidStudio

I try to get a file from the GIT repository to my local AndroidStudio project, respectivly I would like to do a simple revert. I don't find a revert option and a Hardreset does absolutely nothing.

How can I do this ?

Can someone guide me to all the steps needed ? In Eclipse it was simple the revert option.

Upvotes: 0

Views: 2210

Answers (2)

Félix Maroy
Félix Maroy

Reputation: 1487

I know it's too late but hope this will help others. To find Revert option in Android Studio using VCS just do this:

  1. Go to VCS => Local History => Show Historyenter image description here
  2. Then click the Revert button in Upper left Cornerenter image description here

Hope this will help.

Upvotes: 1

Peter Reid
Peter Reid

Reputation: 5407

As a user has described in comments on your question you can revert with the Ctrl+Alt+z keyboard command.

You can also right click a file in the project structure and revert.

Alternatively you can open VCS --> VCS Operations Dialog, Revert.

You can also revert by opening the commit dialog using any of the following:

  • VCS --> Commit Changes
  • Ctrl+K/CMD+K

then right click a file and revert

Upvotes: 0

Related Questions