git server 安装

1. git server安装
server安装

2. 安装时权限问题
chmod 600 ~/.ssh/id_rsa  
chmod 644 ~/.ssh/known_hosts

3. git配置
git配置

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
cat .git/config

你可能感兴趣的:(git)