前提条件:
1.熟悉 Git 操作。
2.在搭建好的 Phabricator 上已注册账号,并开通相关权限。

方法一:

1.在本地创建Git仓库。
本地创建 Git 仓库并关联 Phabricator

2.ssh-keygen -t rsa生产公钥私钥,如下图。
本地创建 Git 仓库并关联 Phabricator

3.读取公钥内容。
本地创建 Git 仓库并关联 Phabricator

4.在“Phabricator > Settings > SSH Public Keys”中单击“Upload Public Key”。

本地创建 Git 仓库并关联 Phabricator

5.将刚才读取的公钥内容复制到 Public Key 中,并为该仓库起一个名称。
本地创建 Git 仓库并关联 Phabricator

6.找到源代码路径。
本地创建 Git 仓库并关联 Phabricator

7.克隆代码。
本地创建 Git 仓库并关联 Phabricator

方法二:

1.在本地创建Git仓库。
本地创建 Git 仓库并关联 Phabricator

2.在“Phabricator > Settings > SSH Public Keys”中单击“Generate Keypair”,并在弹出窗口单击“Generate New Keypair”。

本地创建 Git 仓库并关联 Phabricator

本地创建 Git 仓库并关联 Phabricator

3.此时会生成一个以“id_rsa_phabricator.key”命名的私钥,单击“Download Private Key”进行下载。下载完成,单击“Done”。
本地创建 Git 仓库并关联 Phabricator

4.将下载的私钥拷贝至路径“C:\Users\用户名.ssh”。

5.找到源代码路径。
本地创建 Git 仓库并关联 Phabricator

6.克隆代码。
本地创建 Git 仓库并关联 Phabricator

相关文章:

  • 2021-05-18
  • 2021-12-06
  • 2021-05-21
  • 2021-06-11
  • 2021-08-09
  • 2021-05-12
  • 2022-12-23
猜你喜欢
  • 2021-04-02
  • 2021-12-22
  • 2021-08-20
  • 2021-11-28
  • 2021-09-18
  • 2021-12-15
  • 2022-02-12
相关资源
相似解决方案