Skip to content

Commit f9792e9

Browse files
carusogabrielRichardLitt
authored andcommitted
Clean up READMEs (k88hudson#198)
Signed-off-by: Gabriel Caruso <[email protected]>
1 parent 590f63c commit f9792e9

File tree

4 files changed

+2
-26
lines changed

4 files changed

+2
-26
lines changed

CONTRIBUTE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ We use a translation tool called [GitLocalize][gl]. Please follow these steps to
3333

3434
1. Go to [GitLocalize's k88hudson/git-flight-rules repository][gl-repo].
3535
1. Sign up using your GitHub account :octocat:.
36-
1. Find the document you are going to translate.
36+
1. Find the document you are going to translate.
3737
1. Happy translating :sparkles: .
3838
1. When you are done, send the translation for reviews.
3939
1. The reviewed translation will be sent as a Pull Request to GitHub by the language moderator in the community.
4040

4141
To learn more about how GitLocalize works, visit their [help page][gl-help]. If you find any issues or feature requests, please file them in [GitLocalize's issue tracker][gl-issue-tracker].
4242

4343
[gl]: https://gitlocalize.com
44-
[gl-help]: https://docs.gitlocalize.com/
44+
[gl-help]: https://docs.gitlocalize.com/
4545
[gl-issue-tracker]: https://github.com/gitlocalize/feedback
4646
[gl-repo]: https://gitlocalize.com/repo/598

README.md

-9
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ For clarity's sake all examples in this document use a customized bash prompt in
111111

112112
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
113113

114-
115114
## Editing Commits
116115

117116
<a name="diff-last"></a>
@@ -168,7 +167,6 @@ $ git commit --amend --reset-author --no-edit
168167

169168
If you need to change all of history, see the man page for `git filter-branch`.
170169

171-
172170
<a href="#i-want-to-remove-a-file-from-the-previous-commit"></a>
173171
### I want to remove a file from the previous commit
174172

@@ -290,13 +288,11 @@ $ git add -N filename.x
290288
Then, you will need to use the `e` option to manually choose which lines to add. Running `git diff --cached` or
291289
`git diff --staged` will show you which lines you have staged compared to which are still saved locally.
292290

293-
294291
<a href="stage-in-two-commits"></a>
295292
### I want to add changes in one file to two different commits
296293

297294
`git add` will add the entire file to a commit. `git add -p` will allow to interactively select which changes you want to add.
298295

299-
300296
<a href="unstaging-edits-and-staging-the-unstaged"></a>
301297
### I want to stage my unstaged edits, and unstage my staged edits
302298

@@ -459,7 +455,6 @@ $ git branch -a
459455
$ git checkout -b <branch> <SHA1_OF_COMMIT>
460456
```
461457

462-
463458
<a name="pull-wrong-branch"></a>
464459
### I pulled from/into the wrong branch
465460

@@ -622,7 +617,6 @@ Now, let's *cherry-pick* the commit for bug #21 on top of our branch. That means
622617

623618
At this point, there is a possibility there might be conflicts. See the [**There were conflicts**](#merge-conflict) section in the [interactive rebasing section above](#interactive-rebase) for how to resolve conflicts.
624619

625-
626620
Now let's create a new branch for bug #14, also based on master
627621

628622
```sh
@@ -637,7 +631,6 @@ And finally, let's cherry-pick the commit for bug #14:
637631
(14)$ git cherry-pick 5ea5173
638632
```
639633

640-
641634
<a name="delete-stale-local-branches"></a>
642635
### I want to delete local branches that were deleted upstream
643636
Once you merge a pull request on GitHub, it gives you the option to delete the merged branch in your fork. If you aren't planning to keep working on the branch, it's cleaner to delete the local copies of the branch so you don't end up cluttering up your working checkout with a lot of stale branches.
@@ -1182,7 +1175,6 @@ Keep in mind that author and committer are not the same. The `--author` is the p
11821175

11831176
To find all commits containing a specific file you can use:
11841177

1185-
11861178
```sh
11871179
$ git log -- <path to file>
11881180
```
@@ -1438,7 +1430,6 @@ Using `git reset` it is then possible to change master back to the commit it was
14381430

14391431
(copied and edited from [Source](https://www.atlassian.com/git/tutorials/rewriting-history/git-reflog)).
14401432

1441-
14421433
# Other Resources
14431434

14441435
## Books

README_ru.md

-8
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108

109109
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
110110

111-
112111
## Редактирование коммитов
113112

114113
<a name="diff-last"></a>
@@ -165,7 +164,6 @@ $ git commit --amend --reset-author --no-edit
165164

166165
Если Вам нужно изменить всю историю, то смотрите документацию для `git filter-branch`.
167166

168-
169167
<a href="#i-want-to-remove-a-file-from-the-previous-commit"></a>
170168
### Я хочу удалить файл из предыдущего коммита
171169

@@ -287,13 +285,11 @@ $ git add -N filename.x
287285
Затем используйте опцию `e` для ручного выбора строк. Запустив `git diff --cached` или
288286
`git diff --staged`, Вы увидите какие строки вы подготовили по-сравнению с тем, что сохранено в рабочей копии.
289287

290-
291288
<a href="stage-in-two-commits"></a>
292289
### Я хочу добавить изменения одного файла в два разных коммита
293290

294291
`git add` добавляет в коммит весь файл целиком. `git add -p` позволяет интерактивно выбрать изменения, которые Вы хотите добавить.
295292

296-
297293
<a href="unstaging-edits-and-staging-the-unstaged"></a>
298294
### Я хочу подготовить свои неподготовленные правки и убрать из подготовки то, что уже подготовлено
299295

@@ -456,7 +452,6 @@ $ git branch -a
456452
$ git checkout -b <branch> <SHA1_OF_COMMIT>
457453
```
458454

459-
460455
<a name="pull-wrong-branch"></a>
461456
### Я стянул изменения (pull) из неправильной ветки или в неправильную ветку
462457

@@ -619,7 +614,6 @@ HEAD is now at a13b85e
619614

620615
На этом этапе есть вероятность конфликтов. О том как разрешить конфликты см. в главе [**Здесь были конфликты**](#merge-conflict) в [разделе интерактивное перебазирование выше](#interactive-rebase).
621616

622-
623617
Теперь давайте создадим новую ветку для бага #14, которая также основана на master
624618

625619
```sh
@@ -634,7 +628,6 @@ HEAD is now at a13b85e
634628
(14)$ git cherry-pick 5ea5173
635629
```
636630

637-
638631
<a name="delete-stale-local-branches"></a>
639632
### Я хочу удалить локальные ветки, которые были удалены в upstream
640633
Как только Вы слили пулл-реквест на GitHub, Вам предлагают удалить слитую ветку из Вашего форка. Если Вы не планируете продолжать работу в этой ветке, то для поддержания рабочей копии в чистоте Вы можете удалить локальные копии ненужных веток, чтобы не путаться в них.
@@ -1395,7 +1388,6 @@ $ git reset --hard 0254ea7
13951388

13961389
(взято из [Источник](https://www.atlassian.com/git/tutorials/rewriting-history/git-reflog)).
13971390

1398-
13991391
# Другие ресурсы
14001392

14011393
## Книги

README_zh-CN.md

-7
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787

8888
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
8989

90-
9190
## 编辑提交(editting commits)
9291

9392
<a name="diff-last"></a>
@@ -132,7 +131,6 @@ $ git commit --amend --author "New Authorname <[email protected]>"
132131

133132
如果你需要修改所有历史, 参考 'git filter-branch'的指南页.
134133

135-
136134
<a href="#i-want-to-remove-a-file-from-a-commit"></a>
137135
### 我想从一个提交(commit)里移除一个文件
138136

@@ -242,13 +240,11 @@ $ git add -N filename.x
242240

243241
然后, 你需要用 `e` 选项来手动选择需要添加的行,执行 `git diff --cached` 将会显示哪些行暂存了哪些行只是保存在本地了。
244242

245-
246243
<a href="stage-in-two-commits"></a>
247244
### 我想把在一个文件里的变化(changes)加到两个提交(commit)里
248245

249246
`git add` 会把整个文件加入到一个提交. `git add -p` 允许交互式的选择你想要提交的部分.
250247

251-
252248
<a href="unstaging-edits-and-staging-the-unstaged"></a>
253249
### 我想把暂存的内容变成未暂存,把未暂存的内容暂存起来
254250

@@ -492,7 +488,6 @@ HEAD is now at a13b85e
492488

493489
这时候, 这里可能会产生冲突, 参见[交互式 rebasing 章](#interactive-rebase) [**冲突节**](#merge-conflict) 解决冲突.
494490

495-
496491
再者, 我们为bug #14 创建一个新的分支, 也基于`master`分支
497492

498493
```sh
@@ -507,7 +502,6 @@ HEAD is now at a13b85e
507502
(14)$ git cherry-pick 5ea5173
508503
```
509504

510-
511505
<a name="delete-stale-local-branches"></a>
512506
### 我想删除上游(upstream)分支被删除了的本地分支
513507
一旦你在github 上面合并(merge)了一个pull request, 你就可以删除你fork里被合并的分支。 如果你不准备继续在这个分支里工作, 删除这个分支的本地拷贝会更干净,使你不会陷入工作分支和一堆陈旧分支的混乱之中。
@@ -985,7 +979,6 @@ $ git reset --hard 0254ea7
985979

986980
([摘自](https://www.atlassian.com/git/tutorials/rewriting-history/git-reflog)).
987981

988-
989982
# 其它资源(Other Resources)
990983

991984
## 书(Books)

0 commit comments

Comments
 (0)