git———使用问题总结
2016/2/3 created by wythe
今天恰巧空闲,想把最近写的一个练手小项目放到自己,一个月前搭建的git服务器上。原本以为,只要简单地
git push一把,结果却遇到了错误
如下,
- 命令
git pusherror:权限不足无法写入
solution:
$ cd sample.git/.git/objects
$ sudo chown git:git *
- 命令
git pusherror:无法更新当前分支
solution:
$ cd sample.git/.git
$ vim config
添加:
[receive]
denyCurrentBranch = ignore
3148

被折叠的 条评论
为什么被折叠?



