Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何创建git服务器 #70

Open
aermin opened this issue Jan 18, 2020 · 0 comments
Open

如何创建git服务器 #70

aermin opened this issue Jan 18, 2020 · 0 comments

Comments

@aermin
Copy link
Owner

aermin commented Jan 18, 2020

背景

想要在centos 服务器中穿件git服务器,方便在本地(mac) curd云服务器上的repo

步骤

在centos云服务器上安装git

yum install -y git

在你想要的repo中初始化git

git init

image

红框部分的路径是git路径,clone指令会用到

在你电脑尝试clone刚才的git repo

git clone root@{你的服务器ip}:/root/ghchat-prod/.git/

输入服务器密码

克隆成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant