git 2.23 版本新增了switch、restore命令


git switch :切换分支,

git restore :恢复原样, 撤销的意思,也就是把文件从缓存区撤销,回到未被追踪的状态。

可以取代 git checkout。

具体详细用法见 文档:

​https://git-scm.com/docs/git-switch​


Git switch restore是什么意思?_公众号Git switch restore是什么意思?_公众号_02Git switch restore是什么意思?_git_03

Git switch restore是什么意思?_javascript_04


__________________________________________________________________________________

若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)

你要保守你心,胜过保守一切。

作者:刘俊涛的博客​