File -> Settings -> Version Control -> Git -> Path to Git executable -> 选择本地 Git 可执行文件 -> Test
VCS -> VCS Operations Popup -> Git
项目结构切换为 Project -> 项目名文件夹上右键 -> Git -> Add
项目结构切换为 Project -> 项目名文件夹上右键 -> Git -> Commit Directory -> 填写 Commit Message -> Commit
项目结构切换为 Project -> 项目名文件夹上右键 -> Git -> Respository -> Remotes -> 右边的加号 -> url 填写 git 服务器的 git 仓库地址,比如 ssh://[email protected]:27/home/git/android.git
项目结构切换为 Project -> 项目名文件夹上右键 -> Git -> Respository -> Remotes -> Push
Android Studio 引入 Git 并提交代码
猜你喜欢
转载自www.cnblogs.com/seliote/p/10147517.html
今日推荐
周排行