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