9

Like my title, I cannot use git in intergrated terminal in Android Studio, although I added Path in Enviroment Variable. Please tell me why?

Thanks everybody for your help, after restarting windows, I used git command in terminal :D

hopdacho
  • 115
  • 1
  • 1
  • 6

1 Answers1

26

File >> Settings >> Version Control >> Git >> Click on Test to see if the Test is successful, if not you have to adjust the path which includes git.

Probably you need to change also cmd.exe. Go to Settings, search terminal and include the path "C:\Program Files (x86)\Git\bin\sh.exe" --login -i

weletonne
  • 489
  • 5
  • 10
  • 1
    I can push my project to github by the way using VCS-> Commit Changes but I cannot use git command (such as git add .) in terminal in android studio (not terminal git bash in Windows) – hopdacho Aug 22 '15 at 09:42
  • So VCS basically works? And adding via the GUI works also? Check maybe in the Settings under "Path Variables" and set the path to git there again. – weletonne Aug 22 '15 at 09:49