Loading... # Visual Studio中Git的使用(完全图解) ## 前言 在开发中无论前端还是后端都离不开版本控制,然而前端中vscode的教程一片有一篇,而关于Visual Studio的git教程少之又少。昨天通读[官网](https://docs.microsoft.com/zh-cn//visualstudio/ide/git-with-visual-studio?view=vs-2019)教程。经过提炼总结以及实操写个完全图解。就当是自己的笔记。 有关Git的其他完全图解 1. CSND:[Git使用教程:完全图解!](https://blog.csdn.net/qq_40732336/article/details/111182622) 2. 微信:[Git使用教程:完全图解!](https://mp.weixin.qq.com/s/O9Z0zkG6ELfK0PEXf7frfg) ## 具体操作 首先要将Visual Studio升级到最新版本。 ### 1.克隆仓库   当然还有其他的入口  gitee上面的地址  ### 2.克隆同步自己的仓库  下面是授权成功的界面  选择自己的仓库就开始克隆了   ### 3. 提交更改推送 新版的已经更改成这个界面了。(推送的话特别简单) 下图中3-4,是提交到本地仓库,5是推送到giuhub或者gitee  (或者是在 `扩展` --`管理扩展`--第一个下载安装)  ### 4.版本控制   ### 5.关于忽略文件的特别说明 在没有配置忽略文件的情况下,C#程序每次都会生成新的东西,导致提交的时候都会重新覆盖上个版本的文件说明。   在项目下面新建文件命名为`.gitignore`,然后把`https://github.com/PrideJoy/NetTemple/blob/master/.gitignore`内容添加到文件里面 重新添加就解决 [官网上面github忽略文件(在2019上面可能不生效,建议下载上面的那个文件)](https://github.com/github/gitignore/blob/master/VisualStudio.gitignore) (微信公众号)分享最新的Net和Core相关技术以及实战技巧,更重要的是分享Net项目,不容错过的还有书籍,手写笔记等等。  最后修改:2023 年 10 月 10 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏