I use Elementary os (Ubuntu based) and I have configured terminal to simplify the usage of git. I used the instructions given at Udacity's How to use git and GitHub.
This is in my terminal when I opened by Home+t.
This in android studio terminal.
But I want the same terminal in android studio too.