git 2.23 版本新增了switch、restore命令
git switch :切换分支,
git restore :恢复原样, 撤销的意思,也就是把文件从缓存区撤销,回到未被追踪的状态。
可以取代 git checkout。
具体详细用法见 文档:
https://git-scm.com/docs/git-switch
__________________________________________________________________________________
若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)
你要保守你心,胜过保守一切。
作者:刘俊涛的博客