CodeForPhilly / CodeForPhilly/decentralized-data

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

未关闭 适合新手
#16 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
CSS
星标
6
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

打开 tutorials/actually-using-git/lessons/conflicting-branches.md,并检查选择 git init 的参与者的说明。明确指出,他们应在创建分支前创建、添加并提交一个虚拟的 readme.md。完成的标准是 git init 路径不再导致所报告的错误。

由索引模型根据 Issue 内容生成。

评估

技术栈
git
领域
documentation
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。