Mel*_*ius 5 commit git-commit visual-studio-code
Visual Studio Code 中有 3 个用于 Git 提交的命令:
\n它们之间有什么区别?
\n我希望Commit Staged能够正常工作git commit命令工作。
我\xe2\x80\x99ve发现Commit All也提交了未暂存和未跟踪的文件。(类似于在 \xe2\x80\x9cclassic\xe2\x80\x9d Visual Studio 中提交全部。)
\n但是,Commit是做什么的,它与上面的两个命令有何不同?
\n不幸的是,我没有找到任何关于此的文档或网页。git pull(我对和git fetch或提交 \xe2\x80\x93 修改或提交 \xe2\x80\x93之间的差异不感兴趣,因为大多数搜索表明 \xe2\x80\x93 所有这些都记录良好。Commit命令是德国文章Visual Studio Code (7): Git als Quellcodeverwaltung einsetzen 的综合列表中也缺失例如,
我通过git log 窗口观察了 VS Code 的行为,发现两者commit和commit all选项都记录了 a,git add -A -- .因此结果是相同的。
> git add -A -- .
> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
> git status -z -u
> git symbolic-ref --short HEAD
> git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track) refs/heads/master refs/remotes/master
> git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname)
> git remote --verbose
> git config --get commit.template
> git ls-tree -l HEAD -- /home/antonio/tmp/vscode/f9
> git show --textconv HEAD:f9
> git status -z -u
> git symbolic-ref --short HEAD
> git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track) refs/heads/master refs/remotes/master
> git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname)
> git remote --verbose
> git config --get commit.template
Run Code Online (Sandbox Code Playgroud)
在我看来这可能是一个错误!