克隆仓库
React Strict DOM 是 Meta 在 facebook/react-strict-dom 上维护的 Git 仓库。 了解如何 Fork 和克隆源代码。
安装 Git
您可以通过 git 命令行程序与 git 版本控制进行交互。 我们建议按照GitHub 的说明安装 git。
克隆源代码
已关联 GitHub 帐户并注册为贡献者的 Meta 员工可以直接将源代码仓库克隆到本地文件夹中。
git clone git@github.com:facebook/react-strict-dom.git
cd react-strict-dom
克隆 Fork
其他贡献者应将仓库 Fork 到一个 GitHub 帐户。 然后克隆远程 Fork。
git clone git@github.com:<username>/react-strict-dom.git
cd react-strict-dom
如果使用 Fork,请添加一个指向 facebook/react-strict-dom
仓库的 upstream
远程仓库,以便可以使 Fork 与上游更改保持同步。
git remote add upstream git@github.com:facebook/react-strict-dom.git