用于Android应用程序的远程服务器的Git

时间:2014-11-18 09:20:28

标签: android eclipse git workflow linode

我正在运行远程Linode服务器 - Debian 7.5配置文件(最新64位(3.16.5-x86_64-linode46))

我的同事已经在他们的机器上本地安装了一个Android应用程序项目。

我希望能够将该项目转移到我的服务器上并使git技术适应它。因此,它将使我和同事能够同时处理该项目。

我怎样才能做到这一点?

是否有关于如何执行此操作的分步教程?

提前致谢

1 个答案:

答案 0 :(得分:0)

您可能希望阅读此内容以在服务器上使用git。

http://git-scm.com/book/en/v1/Git-on-the-Server

提示。如果你们可以使用共享文件夹(例如,samba共享文件夹),只需将公共git存储库保留在那里。然后你们可以克隆它并将提交推送到git not shared文件夹。

$ git clone samba_shared_folder_path

阅读上述链接后,您可以了解其工作原理。

提示2,您可以在当地尝试以下操作。 (忘记4位数字)

一个。制作本地git仓库和提交

 2037  mkdir common
 2038  cd common/
 2039  git init
 2040  touch sample.txt
 2041  git add sample.txt 
 2043  git commit -m "testing"

湾将commit.git克隆到另一个文件夹

 2044  cd ..
 2045  git clone common my_common
 2046  cd my_common/
 2047  echo "new line" >> sample.txt 
 2048  git add sample.txt 
 2049  git commit -m "new commit from my_common"

℃。将my_common(local)的新提交推送到公共(远程)

 2052  git push ../common HEAD:from_new_common

考虑在本地使用共享文件夹而不是common文件夹。