How to Use git and androidstudiogit in android studio
Android studio provides a git plug-in for us to implement version control. This blog shows how to use it (the operating system is win7 ).
1. prepare and download git on the window. In studio, set the git plug-in: File-> Setting-> Version Control-> Git, and click Test to Test it. For example: then you have set it successfully.
2. initialize the git Project (git init) as follows: VCS-> Enable Control Integration-> Select "Git ".
3. Add remote for git. In this step, maxcompute studio does not provide us with a visual GUI. You must use the Git tool. Find and open git Bash under the Git installation directory, switch the directory to the project directory, and enter git to add remote commands, such as: git remote add origin "https://github.com/xxx/xxx.git ".
4. add the code to VCS (git Add), select the file to be submitted-> VCS-> Git-> add,
5. commit Changes (git Commit) and VCS-> Commit Changes. For example, you can select commit and Push to directly push the Changes to the server.
6. Git Push, VCS-> Git-> Push.
Finally, if you clone a project to studio, for example,