您是否应该将.vscode/symbols文件提交到源代码管理? [英] Should you commit .vscode/symbols file to source control?

查看:142
本文介绍了您是否应该将.vscode/symbols文件提交到源代码管理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个很流行的答案说,您应该将整个.vscode文件夹提交到源代码管理中……所以我之一团队成员就是这样做的.

This popular answers says you should commit the entire .vscode folder into source control ... so one of my team members did just that.

但是,我现在发现文件.vscode/symbols.json注定要提交.这个文件是一个巨大的单行json文件,如果提交,我预见不可能发生合并冲突.

However, I'm now finding that a file .vscode/symbols.json is destined to be committed. This file is a huge one-line json file, and I forsee impossible merge conflicts if I commit it.

对此有何看法?

推荐答案

gitignore.io建议忽略所有内容,几个文件:

gitignore.io recommends ignoring everything but a few files:

# Created by https://www.gitignore.io/api/visualstudiocode

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# End of https://www.gitignore.io/api/visualstudiocode

Joe 提出了相同的建议(我认为这两个工具都忽略了

Joe gives the same recommendation (I think both tools take their ignores from GitHub's gitignore repository). I think it's safe to say that .vscode/symbols.json shouldn't be committed.

这篇关于您是否应该将.vscode/symbols文件提交到源代码管理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆