清清源 發表於 2021-12-22 13:05:00

WebStorm 使用 git 连接gitee

<h2 id="webstorm-使用-git-连接gitee">WebStorm 使用 git 连接gitee</h2>
<ol>
<li>
<p>在本地新建一个项目 test</p>
<pre><code class="language-bash">npx create-react-app test --template typescript
</code></pre>
</li>
<li>
<p>登录gitee账户,新建一个同名仓库:test</p>
</li>
<li>
<p>WebStorm 添加</p>
<ul>
<li>
<p>第一步: 创建本地仓库</p>
<img src="https://images.cnblogs.com/cnblogs_com/shine-lovely/2083002/o_211222045004_git1.png" alt="git1" style="height: 500px">
</li>
<li>
<p>第二步: 右击项目名,点击 Add</p>
<img src="https://images.cnblogs.com/cnblogs_com/shine-lovely/2083002/o_211222045027_git2.png" alt="git add ." style="height: 500px">
</li>
<li>
<p>第三步:右击项目名, 点击 Commit</p>
<p><img src="https://images.cnblogs.com/cnblogs_com/shine-lovely/2083002/o_211222045038_git3.png" alt="git commit" loading="lazy"></p>
</li>
<li>
<p>第四步:设置gitee仓库地址</p>
<ul>
<li>commit add push</li>
<li>git URL</li>
</ul>
<p><img src="https://images.cnblogs.com/cnblogs_com/shine-lovely/2083002/o_211222045104_git4.png" alt="commit and push" loading="lazy"></p>
<p>url: 填入 gitee 仓库的 地址</p>
<p><img src="https://images.cnblogs.com/cnblogs_com/shine-lovely/2083002/o_211222045115_git5.png" alt="gitee url" loading="lazy"></p>
</li>
</ul>
</li>
</ol><br><br>
来源:https://www.cnblogs.com/shine-lovely/p/15719040.html
頁: [1]
查看完整版本: WebStorm 使用 git 连接gitee