Hel*_*rld 19 git git-checkout git-switch
众所周知,git checkout is a very overloaded command. And I do understand that certain commands got introduced to distribute, e.g. to git switch.
在我使用以下命令之前:
$ git checkout <existing-branch>
$ git checkout <hash>
$ git checkout -b <new-branch-name>
Run Code Online (Sandbox Code Playgroud)
所以我想知道git switch介绍后,剩下的目的是什么git-checkout?这是一个已弃用的命令吗?
phd*_*phd 21
It\'s retained at least for backward compatibility. Think about millions of scripts that still use git checkout \xe2\x80\x94 should we hurry to rewrite all of them? Certainly no.
实际上,它甚至没有被弃用。文档中没有任何关于弃用的内容。另一方面,git restore和的文档git switch say "THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE."
| 归档时间: |
|
| 查看次数: |
3547 次 |
| 最近记录: |