创建Ubuntu server 服务器git项目
服务器端:
mkdir project.git
cd project.git
git init --bare
cd ..
chown -R git:git project.git/
文件夹必须改为git用户组所有
客户端:
服务器数据路径
git clone git@xx.xx.xx.xx:/project.git
echo "this is a test text file,will push to server" > hello.txt
git add .
git commit -am "init a base version,add a first file for push to server"
git push origin master