CodeForPhilly / CodeForPhilly/decentralized-data

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

Offen
#16 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
CSS
Sterne
6
Forks
2
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.