您的位置:首页 > 运维架构 > Linux

Linux创建GitServer

2014-05-13 00:00 190 查看
摘要: GitServer安装以及eclipse使用Git

自己想写点东西,在哪都能看还能随时提交、编译,还是自己创建GitServer比较方便,很简单,2步(服务器是CentOS):

1. 安装Git

yum install git-core

2. 初始化Repository

git init --bare android

Eclipse连接:

Clone a Git repository



创建成功~

可能的错误:

clone时报does not appear to be a git repository

clone时不能用绝对路径,只能写相对于git用户home的相对路径

错误:git@ip:gitosis-admin.git

正确:git@ip:/home/git/repositories/gitosis-admin.git
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: