VS Code的'Commit(Amend)'和'Commit(Signed Off)'有什么区别?

问题描述 投票:1回答:1

这些按钮的图片

enter image description here

嗨,我开始使用VS Code版本控制。

我知道'Commit All'和'Commit Staged'之间的区别

但无法弄清楚提交(修改)和提交(签名关闭)

我检查了VS Code版本控制文件,但没有解释......

我想知道它们是什么以及何时使用它。

git version-control visual-studio-code
1个回答
1
投票

这些不是VS Code功能,而只是Git提交选项。

签名关闭:在提交日志消息的末尾添加签名越线。

参考:https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff

修改:真正修改已经在当前分支上承诺的内容。

参考:https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---amend

© www.soinside.com 2019 - 2024. All rights reserved.