New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
If "git switch" is not recognized as a git command, provide alternative instructions #82152
Comments
Here is good read
It sound like using old git version < 2.27.0. Check git version |
Thanks, very helpful materials. That being said, I submitted a PR with some added information about |
There is only one maintainer so it may take while to be merged. Mine also pending there. |
check out your github version |
馃悶 Problem
My machine gave me an error that "git: 'switch' is not a git command. See 'git --help'".
馃幆 Goal
After reading the git help menu, I discovered that
git branch
+git checkout
is an alternative way of creating a new branch and switching to it, so adding these instructions will help people like me.馃挕 Possible solutions
Add additional instructions:
If the following does not work:
git switch -c your-new-branch-name
Consider using
git branch
and thengit checkout
:git branch your-new-branch-name
git checkout your-new-branch-name
Or, a combined instruction:
git checkout -b your-new-branch-name
馃搵 Steps to solve the problem
Addresses #<put issue number here>
The text was updated successfully, but these errors were encountered: