Closed Neethu-Mohan closed 4 years ago
Yes, you are correct.
The directions specify two different ways to create a branch, but the wording makes it seems like you should do both, which results in creating two branches.
Your solution looks good: make sure that the reader understands that these are two different methods of creating branches and that they should do one or the other, not both.
Clarification here sounds good to me.
Problem
I followed these steps (Screenshot 1) and I ended up creating two branches (duplicated ones) in my Github repo. I think, if we are creating a branch in this step (screenshot 2), we don't need to create a new branch in our local repo by using git checkout -b. We can just use the following command to work on the branch we created in the Github repo
git fetch origin
git checkout
If branch is not created in this step (screenshot 2), then we should use git checkout -b and continue the further steps.
Steps to reproduce the problem
Write N/A if not applicable.
Screenshots
Proposed solution
Change the text as follows: To create a new branch, go to your github repo and create it using the same steps as you can see here (do not delete your branch). Then, At the Terminal, use git fetch origin to get the new data and use git checkout < name_of_your_new_branch>. Or Use git checkout master to switch to master branch, then use git checkout -b to create and switch to a new branch on your local repository.