Android Studio Makes it very simple just follow the below steps and your project is on git :
First we setup our PC ::
Download git from :http://git-scm.com/download/win
for git repository online I am using Bitbucket , bitbucket allow us to host private repository free you can also use github but your project should be public if you want to use it free.
Here I am going to use bitbucket:
After creating repository you will see screen like this
Now open AndroidStudio Create new project.
after creating the project clcik on VCS on menu strip and enable git as shown below
Now your project git enabled ;
You can see terminal in andoid studio we can use it for git commands.
'git' is not recognized as an internal or external command, operable program or batch file.
then you have to follow below steps (from Stackoverflow):
Now your terminal should work with git command.
You have to put you remote address of your project :