ubuntu 下 git 无法 push本地裸仓库

hongdaorong 发布于 2015/09/21 13:18
阅读 517
收藏 0

自己搭的 gitlab 在页面上进行合并无法成功。也是在页面上修改文件 再提交的时候 无法成功,报错:

Your changes could not be committed. Maybe the file was changed by another process?
查看gitlab 的日志,错误如下:
September 18, 2015 16:54 -> ERROR -> Command failed [128]: /opt/gitlab/git/bin/git --git-dir=/opt/gitlab/apps/gitlab/gitlab-satellites/lytz/test/.git --work-tree=/opt/gitlab/apps/gitlab/gitlab-satellites/lytz/test push origin __parking_branch:master

git: '/opt/gitlab/apps/gitlab/repositories/lytz/test.git' is not a git command. See 'git --help'.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.


就是说后台执行了:

git push origin __parking_branch:master



我在命令行试了,创建裸仓库,克隆到另一个目录,再 push 也是报这个错

cd bare-source
git init --bare

cd bare-target
git clone source

echo hello >> hello.c

git add .
git commit -m 'text'

git push origin master



错误如下

git: '/home/git/bare-source/' is not a git command. See 'git --help'.
fatal: Could not read from remote repository.


Please make sure you have the correct access rights
and the repository exists.



而在windows 和centOS 下都可以推送成功的。  在 ubuntu 14.04 和 ubuntu server 14.04 下试的。

不知道 ubuntu 下怎样才能成功.




加载中
返回顶部
顶部