CodeForPhilly / CodeForPhilly/decentralized-data

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

Aperta
#16 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
CSS
Stelle
6
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.