Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git branch incorrect command #82

Open
wpgoble opened this issue Nov 5, 2024 · 0 comments
Open

git branch incorrect command #82

wpgoble opened this issue Nov 5, 2024 · 0 comments

Comments

@wpgoble
Copy link

wpgoble commented Nov 5, 2024

In section 3.3 question 2.b has the user specify a git branch command that will allow them to switch to the main branch.

Question
image

If a user tries the git branch <branch-name> command with an already existing branch name, then they should receive a fatal error and a message that lets them know that branch already exists. I think we should clarify that the command they should use to move between branches is either git checkout <branch-name> or git switch <branch-name>

I've included a screenshot from a random OSS project just to demonstrate that this command should result in an error.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant