Android Studio provides us with a git plugin that allows us to have a good version control, and we'll show you how to use it (the operating system is Win7).
1. Prepare, download git on window, set up git plugin in studio: File->setting->version control->git, and then click Test, such as: then you set it up successfully.
2. Initialize the GIT project (git init) with the following actions: Vcs->enable Control integration->select "git".
3. To add remote to git, in this step, studio does not provide a visual GUI for us to use git tools. Locate and open git Bash under the git installation directory, switch the directory to the project directory, and then enter the git add remote command, for example: Git remote Add origin "Https://github.com/xxx/xxx.git".
4. Add the code to the VCS (git add), select the file->vcs->git->add you want to submit,
5. Commit changes (git commit), vcs->commit changes, for example, you can push to the server directly by selecting commit and push at the time of submission.
6.Git Push,vcs->git->push.
Finally, if you clone project to studio, for example,
How Android Studio uses Git