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
install it.
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:
Create repository
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):
- right-click "My Computer",
- select "Properties",
- open "Advanced",
- click "Environment Variables",
- highlight the "Path" variable,
- click "Edit",
- add your specific path to front of "Variable value" field, separated by a semicolon from the existing entry. Do not add a space between ; and last entry
Now your terminal should work with git command.
You have to put you remote address of your project :