上传本地项目至gitee(for window)
<h2 id="1首先要安装并配置git">1、首先要安装并配置Git;</h2><h2 id="2-在本地待上传的文件夹右键选择git-bash-here">2、 在本地待上传的文件夹,右键选择:Git Bash Here</h2>
<p><img src="https://img-blog.csdnimg.cn/20190705154852147.png" alt="img" loading="lazy"></p>
<h2 id="3执行git-init">3、执行:git init</h2>
<p><img src="https://img-blog.csdnimg.cn/20190705154952922.png" alt="img" loading="lazy"></p>
<h2 id="4-执行git-add-add空一格加点">4、 执行:<code>git add .</code>(add空一格加点)</h2>
<p><img src="https://img-blog.csdnimg.cn/20190705155054348.png" alt="img" loading="lazy"></p>
<h2 id="5执行git-commit--m-注释的内容----提交到本地仓库">5、执行:<code>git commit -m "注释的内容"</code> #提交到本地仓库</h2>
<p><img src="https://img-blog.csdnimg.cn/201907051553291.png" alt="img" loading="lazy"></p>
<h2 id="6执行gitee-git-remote-add-origin-远程项目的https地址-">6、执行:<code>gitee: git remote add origin 远程项目的Https地址 </code></h2>
<p><img src="https://img-blog.csdnimg.cn/20190705155427540.png" alt="img" loading="lazy"></p>
<h2 id="7执行git-push--u-origin-master--f-----f强制上传">7、执行:<code>git push -u origin master -f</code> #-f强制上传</h2>
<p><img src="https://img-blog.csdnimg.cn/2019070515553399.png" alt="img" loading="lazy"></p>
<h2 id="8-弹出帐号密码框时输入账号密码">8、 弹出帐号密码框时:输入账号密码。</h2>
<h2 id="9上传成功可在gitee仓库中查看">9、上传成功,可在gitee仓库中查看。</h2>
<p>参考</p>
</div>
<div id="MySignature" role="contentinfo">
<p>本文来自博客园,作者:CoderHao,转载请注明原文链接:https://www.cnblogs.com/codehao/p/12676573.html</p><br><br>
来源:https://www.cnblogs.com/codehao/p/12676573.html
頁:
[1]