-
-
Notifications
You must be signed in to change notification settings - Fork 80.2k
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
Add git branch and git checkout Commands #87677
Comments
Youp. Back in days it was powerful to do it like that way as you referring this https://stackoverflow.com/a/7987711. but why make doc more longer when we have updated command to make process little faster 😄 . Good Read
|
Good read I agree, I also think we shouldn't make the docs longer so that it isn't intriguing for new contributors. However, we should at least inform them with the term branching and that checking out is another term for switching so that they are more ready to go contribute and work with IDEs and their terminology straight after using the repo, if you know what I mean. Even in one additional line or something so that the docs aren't longer but it is something they should know as a term. |
Hello, git branch branch-name After creating the branch, switch to it with: git checkout branch-name Alternatively, you can create and switch to a new branch in one step using the git switch -c your-new-branch-name . |
Hello @Habeebah157, I'm happy that you agree with the concept and if you check the commits I made in PR #87678 you'll see that I did the exact same thing except that I reversed it so that the switch command is right on top and if a beginner wants to go to the |
I noticed that in the README.md, you explained git branching using
git switch branch-name
instead ofgit branch branch-name
thengit checkout branch-name
🐞 Problem
I'm proposing that we add using
git branch branch-name
thengit checkout branch-name
as an additional explanation or option (feature) so that the project may provide a fuller description.🎯 Goal
This change is important to me to provide first-time contributors with actual Git knowledge, especially that GUIs for Git even in IDEs such as IntelliJ for example and other platforms rely and explicitly list
checkout
as an option, which the contributors would not understand after contributing to the post. Although I do agree thatgit switch branch-name
is indeed simpler and quicker for new contributors to learn but adding the two other git commands would not hurt the core of the project.The text was updated successfully, but these errors were encountered: