你如何同步项目Github上与Android工作室?工作室、项目、Github、Android

由网友(苹果你个爱泡泡)分享简介:我想同步一个项目,我必须在我的Andr​​oid Studio文件夹到Github上,但我不完全知道该怎么不是增加我的凭据选项菜单做其他的。可能有人给我一个快速指导吗?I am trying to sync a project that I have on in my Android Studio folder to...

我想同步一个项目,我必须在我的Andr​​oid Studio文件夹到Github上,但我不完全知道该怎么不是增加我的凭据选项菜单做其他的。可能有人给我一个快速指导吗?

I am trying to sync a project that I have on in my Android Studio folder to Github but I am not fully sure what to do other than adding my credentials in the options menu. Could someone give me a quick guide please?

推荐答案

打开要推的Andr​​oid Studio中的项目。

Open the project you want to push in Android Studio.

点击 VCS - >启用版本控制集成 - > Git的

目前似乎没有一种方法来通过GUI添加远程。因此,开放的Git猛砸在项目的根目录,做好远程Git添加< remote_name> < remote_url>

There doesn't seem to be a way to add a remote through the GUI. So open Git Bash in the root of the project and do git remote add <remote_name> <remote_url>

现在,当你做 VCS - &GT;提交更改 - &GT;提交和放大器;按你应该会看到你的远程,一切都应该工作,通过图形用户界面。

Now when you do VCS -> Commit changes -> Commit & Push you should see your remote and everything should work through the GUI.

如果您得到了错误:致命:远程&LT; remote_name&GT;已经存在这意味着你已经添加它。要查看你的遥控器操作 git的远程-v 远程Git RM&LT; remote_name&GT; 删除

If you are getting the error: fatal: remote <remote_name> already exists that means you already added it. To see your remotes do git remote -v and git remote rm <remote_name> to remove.

请参阅这些页面了解详细信息:

See these pages for details:

http://www.jetbrains.com/idea/webhelp/using-git-integration.html

http://gitref.org/remotes/

阅读全文

相关推荐

最新文章