android studio git

转载Android Studio Git Tutorial (Part 1)

File > Settings > Version Control > Git

可以如下图点击Test按钮来检测成功了没。

git tool test.PNG

  • 使用版本控制整合
VCS > Enable Version Control Integration > select "Git"
git add.PNG

打开git bash
去到项目路径下
Git Bash > key in add remote

git remote add origin [git@192.168.0.1](mailto:git@192.168.0.1):user/android-studio-git.git

command.PNG

Step 3 : Add to VCS(git add)
Select <project/file> > VCS > Git > Add to VCS[图片上传中。。。(4)]

Step 4 : Commit Changes(git commit)
VCS > Commit Changes...
Write down commit message, then choose commit.
If you select Commit and Push..., the git push window will pop up.

commit.png

Step 5 : Git Push(git commit)
VCS > Git > Push
If your repository is empty, you must select Push current branch to alternative branch
git push.png

If push completely, you will see Push Secessfully at the bottom of Android Studio.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容