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

Use 'branch' instead of 'checkout -b' #105

Merged
merged 1 commit into from
Mar 29, 2017
Merged

Conversation

Plsr
Copy link
Contributor

@Plsr Plsr commented Mar 29, 2017

Referencing to I committed to master instead of a new branch here.

Instead of using

(master)$ git checkout -b my-branch
(my-branch)$ git checkout master
(master)$

just using

(master)$ git branch my-branch

works as well.

This was actually changed before in #21 but got mixed up a little. Now, not only are the commands somewhat repetitive, but also it's a little confusing because the explanation states

Create the new branch while remaining on master:

which is not exactly what is happening with these commands.

@Plsr
Copy link
Contributor Author

Plsr commented Mar 29, 2017

Did look around a little, looks like the revert to the old commands happened in #47 since 978e484 and 88252b2 are almost a year apart (#21 was merged between them) and the latter seems to be based on an old README.md.

I guess the revert to the old commands happened by accident then, rather than on purpose.

@RichardLitt
Copy link
Collaborator

I did not know this!

Sorry about the mixup. Thank you for finding this.

@RichardLitt RichardLitt merged commit f3428ed into k88hudson:master Mar 29, 2017
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

Successfully merging this pull request may close these issues.

2 participants