Git the switch command is new 2.23 release, and therefore can not use the old version, so before use to view their own version if the older version, need to upgrade to the latest version to use.
Check your version of git
$ git --version
current version upgrade to the latest version
upgrade commands use different versions of different
versions prior to 2.17.1
$ Git update
later versions 2.17.1
Update git-git-$ for-Windows
----------------
Disclaimer: This article is CSDN blogger "Zayn17 'original article, follow the CC 4.0 BY-SA copyright agreement, reprint Please include links to the original source and this statement.
Original link: https: //blog.csdn.net/weixin_43867927/article/details/100784449