adduser git
mkdir /git
cd /git
git init --bare sample.git
chown -R git:git sample.git
if port custom:
git clone ssh://git@remote_ip:remote_port/git/download.git master
git push ssh://git@remote_ip:remote_port/git/download.git master
if port is 22
git clone git@remote_ip:/git/download.git master
git push git@remote_ip:/git/download.git master
git custom repository
最新推荐文章于 2023-08-11 17:53:05 发布