16

I use Github in Android Studio 3.3.1. I know I can open Version Control using Alt+9.

And Git command and result will be displayed in Console of Version Control. Can I input Git command and run it directly in Android Studio IDE ?

3 Answers 3

28

Yes sure. About android studio on Windows you can change default command line to "bash" First install git bash then Setting in android studio to run terminal from bash

  1. File -> Settings search for "terminal"
  2. In topic "terminal" select on "Application settings" title then change "Shell path" to the directory of installed "git bash" default root shell is "C/Program file/git/bin/bash"

close your current terminal and open new one in android so you will see new terminal with can use git command.

Sign up to request clarification or add additional context in comments.

1 Comment

you need to select executable path not directory... E:\programs\Git\usr\bin\bash.exe
14

From your Android studio ->

Go to -

File->Settings->Tools->Terminal Make your settings there.

Android studio terminal

Hope you will be able to find out the Terminal.

Android studio with terminal

Comments

5

or, for windows 10 on the File->Setting->Terminal->Shell path change the cmd.exe to powershell.exe. You will get git and also more linux commands plus some cool colors etc.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.