Git uses a switch encountered git: problems 'switch' is not a git command of

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

Note: If no response after upgrading to the latest version using the command carriage return, you need to be an administrator to run the upgrade command

Published 98 original articles · won praise 124 · views 30000 +

Guess you like

Origin blog.csdn.net/lyc0424/article/details/104781766