Skip to content

Commit a402335

Browse files
committed
Update to d3b0586
1 parent cdc4369 commit a402335

1 file changed

Lines changed: 138 additions & 10 deletions

File tree

README.ko.md

Lines changed: 138 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
1616
- [Line Highlighting in Repositories](#line-highlighting-in-repositories)
1717
- [Closing Issues via Commit Messages](#closing-issues-via-commit-messages)
1818
- [Cross-Link Issues](#cross-link-issues)
19+
- [CI Status on Pull Requests](#ci-status-on-pull-requests)
1920
- [Syntax Highlighting in Markdown Files](#syntax-highlighting-in-markdown-files)
2021
- [Emojis](#emojis)
2122
- [Images/GIFs](#imagesgifs)
@@ -29,11 +30,15 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
2930
- [Rendered prose Diffs](#rendered-prose-diffs)
3031
- [Diffable Maps](#diffable-maps)
3132
- [Expanding Context in Diffs](#expanding-context-in-diffs)
33+
- [Diff or Patch of Pull Request](#diff-or-patch-of-pull-request)
3234
- [Hub](#hub)
3335
- [Decreasing Contributor Friction](#decreasing-contributor-friction)
3436
- [Contributing Guidelines](#contributing-guidelines)
37+
- [GitHub Resources](#github-resources)
38+
- [GitHub Talks](#github-talks)
3539
- [Git](#git)
3640
- [Previous Branch](#previous-branch)
41+
- [Stripspace](#stripspace)
3742
- [Checking out Pull Requests](#checking-out-pull-requests)
3843
- [Empty Commits :trollface:](#empty-commits-trollface)
3944
- [Styled Git Status](#styled-git-status)
@@ -45,13 +50,17 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
4550
- [Aliases](#aliases)
4651
- [Auto-Correct](#auto-correct)
4752
- [Color](#color)
53+
- [Git Resources](#git-resources)
54+
- [Git Books](#git-books)
4855

4956
## GitHub
5057

5158
### Ignore Whitespace
5259

5360
`?w=1`를 diff URL에 추가하면 변경된 코드만 볼 수 있도록, 공백만 바뀐 수정을 제거할 수 있습니다.
5461

62+
![Diff without whitespace](https://camo.githubusercontent.com/797184940defadec00393e6559b835358a863eeb/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f736563726574732f776869746573706163652e706e67)
63+
5564
[*깃허브의 비밀을 더 읽어 보세요.*](https://github.com/blog/967-github-secrets)
5665

5766
### Commit History by Author
@@ -62,6 +71,8 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
6271
https://github.com/rails/rails/commits/master?author=dhh
6372
```
6473

74+
![DHH commit history](http://i.imgur.com/mDWwuaY.png)
75+
6576
[*커밋 뷰간의 차이에 대해 더 읽어보세요.*](https://help.github.com/articles/differences-between-commit-views)
6677

6778
### Cloning a Repository
@@ -84,18 +95,25 @@ https://github.com/user/repo/compare/{range}
8495

8596
`{range}``master...4-1-stable`식으로 적습니다.
8697

87-
예를 들어:
98+
예를 들어
99+
88100
```
89101
https://github.com/rails/rails/compare/master...4-1-stable
90102
```
91103

104+
![Rails branch compare example](http://i.imgur.com/0Z52X5Y.png)
105+
92106
`{range}` 는 이렇게 적을 수도 있습니다.
93107

94108
```
95109
https://github.com/rails/rails/compare/master@{1.day.ago}...master
96110
https://github.com/rails/rails/compare/master@{2014-10-04}...master
97111
```
98112

113+
*날짜는 `YYYY-DD-MM`형식으로 적습니다*
114+
115+
![Another compare example](http://i.imgur.com/5dtzESz.png)
116+
99117
이렇게 하면 특정 날짜나 한 시간 전의 마스터 브랜치의 차이를 확인할 수 있습니다.
100118

101119
[*시간으로 커밋을 비교하는 법에 대해 더 읽어 보세요.*](https://help.github.com/articles/comparing-commits-across-time)
@@ -114,9 +132,15 @@ https://github.com/user/repo/compare/{foreign-user}:{branch}...{own-branch}
114132
https://github.com/rails/rails/compare/byroot:idempotent-counter-caches...master
115133
```
116134

135+
![Forked branch compare](http://i.imgur.com/Q1W6qcB.png)
136+
117137
### Gists
118138

119-
[Gists](https://gist.github.com/)는 본격적인 저장소를 만들지 않고, 작은 코드 조각과 일할 수 있는 쉬운 방법입니다. [이렇게](https://gist.github.com/tiimgreen/10545817.pibb) Gist URL뒤에 `.pibb`를 넣으면 다른 사이트에 넣을수 있는 *HTML 온리* 버전을 넣을 수 있습니다.
139+
[Gists](https://gist.github.com/)는 본격적인 저장소를 만들지 않고, 작은 코드 조각과 일할 수 있는 쉬운 방법입니다.
140+
141+
![Gist](http://i.imgur.com/VkKI1LC.png?1)
142+
143+
[이렇게](https://gist.github.com/tiimgreen/10545817.pibb) Gist URL뒤에 `.pibb`를 넣으면 다른 사이트에 넣을수 있는 *HTML 온리* 버전을 만들 수 있습니다.
120144

121145
Gists는 본격적인 저장소처럼 취급할 수 있고 클론도 됩니다.
122146

@@ -130,7 +154,11 @@ $ git clone https://gist.github.com/tiimgreen/10545817
130154

131155
### Git.io
132156

133-
[Git.io](http://git.io)는 깃허브를 위한 간단한 URL 단축기입니다. 순수 HTTP에서 Curl으로 사용하실 수도 있습니다.
157+
[Git.io](http://git.io)는 깃허브를 위한 간단한 URL 단축기입니다.
158+
159+
![Git.io](http://i.imgur.com/6JUfbcG.png?1)
160+
161+
순수 HTTP에서 Curl으로 사용하실 수도 있습니다.
134162

135163
```bash
136164
$ curl -i http://git.io -F "url=https://github.com/..."
@@ -156,6 +184,8 @@ Location: https://github.com/...
156184

157185
지금 페이지에서 쓸 수 있는 모든 단축키를 보시려면 `?`를 누르세요.
158186

187+
![Keyboard shortcuts](http://i.imgur.com/y5ZfNEm.png)
188+
159189
[*커맨드 바의 사용법을 더 읽어 보세요.*](https://help.github.com/articles/using-the-command-bar)
160190

161191
### Line Highlighting in Repos
@@ -192,6 +222,14 @@ $ git commit -m "Fix cock up, fixes #12"
192222

193223
![Cross-Link Issues](https://camo.githubusercontent.com/447e39ab8d96b553cadc8d31799100190df230a8/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f736563726574732f7265666572656e6365732e706e67)
194224

225+
### CI Status on Pull Requests
226+
227+
정확히 설정되었다면, 풀 리퀘스트를 받거나 풀 리퀘스트에 새로운 커밋을 할 때 마다, [Travis CI](https://travis-ci.org/)가 풀 리퀘스트를 빌드 할 것입니다. [Travis CI 시작하기](http://docs.travis-ci.com/user/getting-started/)를 좀 더 읽어보세요.
228+
229+
[![Travic CI status](https://cloud.githubusercontent.com/assets/1687642/2700187/3a88838c-c410-11e3-9a46-e65e2a0458cd.png)](https://github.com/octokit/octokit.rb/pull/452)
230+
231+
[*커밋 상태 API에 대해 좀 더 읽어보세요.*](https://github.com/blog/1227-commit-status-api)
232+
195233
### Syntax Highlighting in Markdown Files
196234

197235
마크다운에서 예를 들어, 루비 코드를 신텍스 하이라이트 하려면 이렇게 합니다.
@@ -232,7 +270,7 @@ puts table.to_s
232270
:shipit:
233271
:+1:
234272

235-
깃허브에서 사용 가능한 에모지의 전 목록은 [여기](http://www.emoji-cheat-sheet.com/)[여기](https://github.com/scotch-io/All-Github-Emoji-Icons)에서 확인하실 수 있습니다.
273+
깃허브에서 사용 가능한 에모지의 전 목록은 [emoji-cheat-sheet.com](http://www.emoji-cheat-sheet.com/)[scotch-io/All-Github-Emoji-Icons](https://github.com/scotch-io/All-Github-Emoji-Icons)에서 확인하실 수 있습니다.
236274

237275
깃허브에서 많이 사용하는 에모지 탑 5위는 이렇습니다.
238276

@@ -332,7 +370,7 @@ puts table.to_s
332370

333371
Jemoji와 jekyll-mentions플러그인은 GitHub.com에서 처럼 [emoji](#emojis)[@mentions](https://github.com/blog/821)을 지킬 포스트와 페이지에서 사용하게 합니다.
334372

335-
[*저장소 메타 데이타와 깃허브 페이지의 플러그인 지원에 대해 더 읽어 보세요.*](Repository metadata and plugin support for GitHub Pages)
373+
[*저장소 메타 데이타와 깃허브 페이지의 플러그인 지원에 대해 더 읽어 보세요.*](https://github.com/blog/1797-repository-metadata-and-plugin-support-for-github-pages)
336374

337375
### Diffs
338376

@@ -364,15 +402,41 @@ diff의 닫아둔 곳의 *펼침* 버튼을 클릭하면, 문맥을 더 볼 수
364402

365403
[*diff에서의 문맥 확장에 대해 더 읽어 보세요.*](https://github.com/blog/1705-expanding-context-in-diffs)
366404

367-
### Hub - Git Wrapper
405+
#### Diff or Patch of Pull Request
368406

369-
[Hub](https://github.com/github/hub)는 깃허브를 좀 더 쉽게 사용할 수 있도록 추가 기능 및 명령을 제공하는 커맨드 라인 깃 래퍼입니다.
407+
URL뒤에 `.diff``.patch`를 붙이면 풀 리퀘스트의 diff를 얻을 수 있습니다.
408+
예를 들면
409+
410+
```
411+
https://github.com/tiimgreen/github-cheat-sheet/pull/15
412+
https://github.com/tiimgreen/github-cheat-sheet/pull/15.diff
413+
https://github.com/tiimgreen/github-cheat-sheet/pull/15.patch
414+
```
370415

371-
이런 명령 대신에
416+
`.diff` 확장자는 이런 내용의 평범한(plain) 텍스트를 줍니다.
372417

373-
```bash
374-
$ git clone https://github.com/tiimgreen/toc.git
375418
```
419+
diff --git a/README.md b/README.md
420+
index 88fcf69..8614873 100644
421+
--- a/README.md
422+
+++ b/README.md
423+
@@ -28,6 +28,7 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
424+
- [Merged Branches](#merged-branches)
425+
- [Quick Licensing](#quick-licensing)
426+
- [TODO Lists](#todo-lists)
427+
+- [Relative Links](#relative-links)
428+
- [.gitconfig Recommendations](#gitconfig-recommendations)
429+
- [Aliases](#aliases)
430+
- [Auto-correct](#auto-correct)
431+
@@ -381,6 +382,19 @@ When they are clicked, they will be updated in the pure Markdown:
432+
- [ ] Sleep
433+
434+
(...)
435+
```
436+
437+
### Hub - Git Wrapper
438+
439+
[Hub](https://github.com/github/hub)는 깃허브를 좀 더 쉽게 사용할 수 있도록 추가 기능 및 명령을 제공하는 커맨드 라인 깃 래퍼입니다.
376440

377441
이렇게 할 수 있습니다.
378442

@@ -398,6 +462,26 @@ $ hub clone tiimgreen/toc
398462

399463
[*기여하기에 대해 더 읽어 보세요.*](https://github.com/blog/1184-contributing-guidelines)
400464

465+
### GitHub Resources
466+
467+
| Title | Link |
468+
| ----- | ---- |
469+
| GitHub Explore | https://github.com/explore |
470+
| GitHub Blog | https://github.com/blog |
471+
| GitHub Help | https://help.github.com/ |
472+
| GitHub Training | http://training.github.com/ |
473+
| GitHub Developer | https://developer.github.com/ |
474+
475+
#### GitHub Talks
476+
477+
| Title | Link |
478+
| ----- | ---- |
479+
| How GitHub Uses GitHub to Build GitHub | https://www.youtube.com/watch?v=qyz3jkOBbQY |
480+
| Introduction to Git with Scott Chacon of GitHub | https://www.youtube.com/watch?v=ZDR433b0HJY |
481+
| How GitHub No Longer Works | https://www.youtube.com/watch?v=gXD1ITW7iZI |
482+
| Git and GitHub Secrets | https://www.youtube.com/watch?v=Foz9yvMkvlA |
483+
| More Git and GitHub Secrets | https://www.youtube.com/watch?v=p50xsL-iVgU |
484+
401485
## Git
402486

403487
### Previous Branch
@@ -423,6 +507,22 @@ $ git checkout -
423507

424508
[*깃 브랜치에 대해 더 읽어 보세요.*](http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging)
425509

510+
### Stripspace
511+
512+
깃 Stripspace는 이런 일을 합니다.
513+
514+
- 줄 끝의 공백을 제거
515+
- 빈줄을 줄임
516+
- 파일 끝에 빈 줄을 추가
517+
518+
커맨드를 실행 할 때 파일을 반드시 이런식으로 넘겨줘야 합니다.
519+
520+
```bash
521+
$ git stripspace < README.md
522+
```
523+
524+
[*`stripspace` 커맨드에 대해 더 읽어 보세요.*](http://git-scm.com/docs/git-stripspace)
525+
426526
### Checking out Pull Requests
427527

428528
풀 리퀘스트를 체크아웃하려면, 다음 명령어로 가져올 수 있습니다.
@@ -648,3 +748,31 @@ $ git config --global color.ui 1
648748
```
649749

650750
[*`config` 커맨드에 대해 더 읽어 보세요.*](http://git-scm.com/docs/git-config)
751+
752+
### Git Resources
753+
754+
| Title | Link |
755+
| ----- | ---- |
756+
| Official Git Site | http://git-scm.com/ |
757+
| Official Git Video Tutorials | http://git-scm.com/videos |
758+
| Code School Try Git | http://try.github.com/ |
759+
| Introductory Reference & Tutorial for Git | http://gitref.org/ |
760+
| Official Git Tutorial | http://git-scm.com/docs/gittutorial |
761+
| Everyday Git | http://git-scm.com/docs/everyday |
762+
| Git Immersion | http://gitimmersion.com/ |
763+
| Ry's Git Tutorial | http://rypress.com/tutorials/git/index.html |
764+
| Git for Designer | http://hoth.entp.com/output/git_for_designers.html |
765+
| Git for Computer Scientists | http://eagain.net/articles/git-for-computer-scientists/ |
766+
| Git Magic | http://www-cs-students.stanford.edu/~blynn/gitmagic/ |
767+
768+
#### Git Books
769+
770+
| Title | Link |
771+
| ----- | ---- |
772+
| Pragmatic Version Control Using Git | http://www.pragprog.com/titles/tsgit/pragmatic-version-control-using-git |
773+
| Pro Git | http://git-scm.com/book |
774+
| Git Internals Peepcode | http://peepcode.com/products/git-internals-pdf |
775+
| Git in the Trenches | http://cbx33.github.com/gitt/ |
776+
| Version Control with Git | http://www.amazon.com/Version-Control-Git-collaborative-development/dp/1449316387 |
777+
| Pragmatic Guide to Git | http://www.pragprog.com/titles/pg_git/pragmatic-guide-to-git |
778+
| Git: Version Control for Everyone | http://www.packtpub.com/git-version-control-for-everyone/book |

0 commit comments

Comments
 (0)