一个人应该在git的.history文件夹中跟踪文件吗 [英] Should one track files in one's .history folder in git

查看:121
本文介绍了一个人应该在git的.history文件夹中跟踪文件吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.history文件夹中的某些文件在我的状态下显示为未跟踪.我不记得必须添加此类文件.也许我需要解决一些问题.

Some files from my .history folder appear untracked in my status. I don't remember having to add these kind of files. Perhaps I need to fix something.

$ git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
(use "git add <file>..." to include in what will be committed)

 ->   .history/Page1/index_20200315055719.html
 ->   .history/Page1/index_20200315055757.html

我保存的所有新更改都会生成这些文件.我知道文件本身是正常的,但是我认为我不应该添加文件或处理文件.

Any new changes I save generate these files. I know the files themselves are normal, but I don't think I am supposed to be adding them or having to deal with them.

推荐答案

角度/角度-cli问题12895 ejpcmac/xgen问题19 都添加了<由 VSCode扩展local-history 创建的c0>文件夹.

angular/angular-cli issue 12895 or ejpcmac/xgen issue 19 both adds the .history/ folder created by VSCode extension local-history.

由于这是用户生成的本地信息,因此最好保持私有状态,并且不包括在源代码管理提交中.
例如,您可以在删除敏感信息之前放入敏感信息:这些信息可能仍会记录在那些.history/xxx文件中.

Since this is a local information generated by the user, it is best to be kept private, and not included in the source control commits.
You could for instance put sensitive information, before deleting it: that might still be recorded in those .history/xxx files.

这篇关于一个人应该在git的.history文件夹中跟踪文件吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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