在ubuntu上搭建git-server及android studio使用git
来源:互联网 发布:数据库安全问题分类 编辑:程序博客网 时间:2024/04/29 10:20
然后就可以看到下面的信息,一切成功
Android Studio has git plugin, which can make you have a well version control on your project.
In this part, I will show you how to create a new repository at Android Studio on Windows OS.
Prepare :
At the first, you should install Git for Windows.
And then, Setting git tools path for Android Studio.
File > Settings > Version Control > Git
You can click Test button to check function. Such as figure below.
Step 1 : Enable Version Control Integration(git init)
VCS > Enable Version Control Integration > select "Git"
And then, you will discovery that your project list changed color. Like figure.
※ build folder & local.properties doesn't added.
Step 2 : Git Add Remote
In this step, Android Studio doesn't provide GUI to work, We should use Git for Windows tool.
Go find Git Bash in git folder.
Git Bash > Go to Project folder
Git Bash > key in add remote command
Ex: git remote add origin git@192.168.0.1:user/android-studio-git.git
Step 3 : Add to VCS(git add)
Select <project/file> > VCS > Git > Add to VCS
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.
Step 5 : Git Push(git commit)
VCS > Git > Push
If your repository is empty, you must select Push current branch to alternative branch
If push completely, you will see Push Secessfully at the bottom of Android Studio.
This tutorial's git server is private server, not GitHub.
Pushing to GitHub is easier, I will write down later.
Now, enjoy version control at Android Studio with Git.
PS.
I perfer to install tortoise git, addtionally.
Because icons, open on windows, would be more pretty.
Moreover, you can use GUI to do Step 2.
- 在ubuntu上搭建git-server及android studio使用git
- 在Ubuntu上搭建git+gitolite server
- 在Ubuntu上搭建Git server
- Git在Android Studio上的使用
- android studio上配置git、使用git
- 在Ubuntu 上使用git
- 在ubuntu上使用git
- 如何在Ubuntu上几步搭建Git Server
- ubuntu搭建git server
- 在Linux上搭建git server
- 在 mac os 上搭建 git server
- 在Ubuntu上创建Git Server
- 在Ubuntu 14.10上配置git server
- 在Ubuntu 12.04 上 搭建 Git服务器
- 在android studio上使用git向github推送代码
- git在android studio上简单的使用
- android开发,如何使用git托管代码,如何在android studio上使用git管理代码
- Ubuntu server 搭建Git server
- Spring MVC和Struts2的比较
- usaco prefix
- 接口调用请求
- ruby 多线程及查看程序运行情况
- unity3d基础学习笔记7:适应屏幕
- 在ubuntu上搭建git-server及android studio使用git
- view变化监听器ViewTreeObserver的简单使用(附小demo)
- 一个架构师谈什么是架构以及怎么成为一个架构师
- Android未来前景甚优扣丁春季开班收获秋季
- 欢迎使用CSDN-markdown编辑器
- 配置wine出错 提示没有库文件 gnome-keyring-pkcs11.so
- 说说JSON和JSONP
- Microsoft.XMLHTTP组件,send()卡死问题
- sql mid()