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

"Actually Using Git": can't branch on an empty repo #16

Open
jadrian opened this issue Oct 25, 2016 · 0 comments
Open

"Actually Using Git": can't branch on an empty repo #16

jadrian opened this issue Oct 25, 2016 · 0 comments

Comments

@jadrian
Copy link
Collaborator

jadrian commented Oct 25, 2016

On tutorials/actually-using-git/lessons/conflicting-branches.md , there are three reasonable ways to initialize a repo:

  1. Reuse an existing repo
  2. Create a new repo on Github and then clone it
  3. Use git init

If a participant uses the third option (git init) and then, following the directions, immediately tries to create a new branch, they'll get an error:

fatal: Not a valid object name: 'master'.

Instead, they should create a dummy readme.md, add and commit it, and then proceed.

The instructions should be clarified for folks who choose the third option.

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