且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio代码:自动提交git

更新时间:2022-02-24 09:45:41

我也想知道以这种方式使用git是否是个好选择

I also wonder if using git in this way is a good option

否,那会污染您提交的历史记录.

No, that would pollute the history of your commits.

使用扩展名"本地历史"是一种更好的方法,并且不依赖您的VCS.
(并且是开源的: github.com/zabel-xyz/local-history )

Using the extension "Local history" is a better approach, and does not rely on your VCS.
(and is open-source: github.com/zabel-xyz/local-history)

每次修改文件时,旧内容的副本都会保留在本地历史记录中.
您可以随时将文件与历史记录中的任何旧版本进行比较.
当您意外更改或删除文件时,它可以为您提供帮助.
当工作区发生灾难性问题时,历史记录还可以为您提供帮助.

Every time you modify a file, a copy of the old contents is kept in the local history.
At any time, you can compare a file with any older version from the history.
It can help you out when you change or delete a file by accident.
The history can also help you out when your workspace has a catastrophic problem.