1. git server安装
[url=http://feuyeux.iteye.com/blog/1797261]server安装[/url]
2. 安装时权限问题
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/known_hosts
3. git配置
[url=http://blog.csdn.net/joe_007/article/details/7276195]git配置[/url]
4. 更新时问题:找不到提交的版本
解决:
5. 查看git info
[code]cat .git/config[/code]
[url=http://feuyeux.iteye.com/blog/1797261]server安装[/url]
2. 安装时权限问题
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/known_hosts
3. git配置
[url=http://blog.csdn.net/joe_007/article/details/7276195]git配置[/url]
4. 更新时问题:找不到提交的版本
$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'file:///xxxxxxx.git'
解决:
git push origin master
5. 查看git info
[code]cat .git/config[/code]