server:
yum install -y git
adduser git
passwd git
mkdir repo
cd repo
git init --bare xxxx.git
chown git:git xxxx.git
client:
cd xxxx
git init
git add .
git commit -m init
git push git@[ip]:[dir]/repo/xxxx.git master
yum install -y git
adduser git
passwd git
mkdir repo
cd repo
git init --bare xxxx.git
chown git:git xxxx.git
cd xxxx
git init
git add .
git commit -m init
git push git@[ip]:[dir]/repo/xxxx.git master