简体   繁体   English

如何在Android Studio中将git用作语言环境版本控件

[英]How to use git as a locale version control in android studio

We are an android developer team and we are doing our job on a single server using remote desktop. 我们是一个android开发人员团队,我们正在使用远程桌面在一台服务器上完成工作。 so everyone of our developers has a user account on the server and all are simultaneously developing using the android studio, we want to use git as version control but our repository must locate on that server not on git remote servers. 因此,我们每个开发人员在服务器上都有一个用户帐户,并且所有人都在同时使用android studio进行开发,我们希望使用git作为版本控制,但我们的存储库必须位于该服务器上,而不是git远程服务器上。 how can we do that? 我们该怎么做? we are already using Team Foundation Server but it has many problems so we want to switch to git. 我们已经在使用Team Foundation Server,但是它有很多问题,因此我们想切换到git。 any help would be appreciated. 任何帮助,将不胜感激。

Try using https://gitlab.com . 尝试使用https://gitlab.com It is free (Community Edition) and widely used. 它是免费的(社区版)并且被广泛使用。

If you know enough git to for use local repository /PC ( git init, git add, git commit , git checkout ) , you should not have much problem then. 如果您知道足够的git来使用本地存储库/ PC(git init,git add,git commit,git checkout),那么您应该没有太大的问题。 In your server you can prepare a git bare repository under any folder ie ( gitServer ) and create a remote on your local repository git remote --- . 在服务器中,您可以在任何文件夹下(gitServer)准备一个git裸存储库,并在本地存储库git remote ---上创建一个远程目录。 Now you sync up your local git with remote server easily through push, pull, fetch commands.. 现在,您可以通过推,拉,提取命令轻松地将本地git与远程服务器同步。

In case you need to understand git flow for 2-3 members of team, you can refer stackoverflow post How to use git correctly ? 如果您需要了解2-3个团队成员的git flow,可以参考stackoverflow帖子如何正确使用git?

gitlab is not proper for you if your group is small. 如果您的小组很小,gitlab不适合您。 It consumes a lot of memory and resources. 它消耗大量内存和资源。 I prefer Gogit https://github.com/gogits/gogs . 我更喜欢Gogit https://github.com/gogits/gogs

Thanks for all answers. 感谢所有答案。 I used http://gitstack.com/ it is free for double teams. 我使用了http://gitstack.com/ ,双人团队免费。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM