git 新人服务器搭建

来源:互联网 发布:银行大劫案 知乎 编辑:程序博客网 时间:2024/06/05 02:07

1 新建一个新人服务器(创建文件夹)

2 初始化仓库

 git init --bare

3 添加一个新的远程仓库 :

在Xcode中的 source control >> master >> configure >> remotes >> + >> add a remote >> 添加名称,远程仓库路径/

4 push 到新人的远程仓库

5 拿到新人服务器的地址就可以实现

0 0