https://www.cnblogs.com/wucg/archive/2011/08/16/2141647.html

如果是第一次,在提交得时候选择要忽略得文件就行,

如果已经提交过,则需要先删除索引

git rm -r --cached  (您的文件路径)

 

如果你和我一样是使用vs2019 来使用git 的您需要先配置的的git 命令环境变量

在您安装的Visual Studio的目录下找到这个 Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd

配置环境变量不懂,请百度

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2021-06-25
  • 2022-02-07
  • 2021-08-17
  • 2021-12-17
猜你喜欢
  • 2021-08-08
  • 2021-05-15
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
相关资源
相似解决方案