1.初始化化一个仓库
git init --bare
第一次提交会报如下的错误:
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: 无法推送一些引用到 '/opt/git/WifiLed/'
提交时加上下面的参数:
git push origin master