Skip to content

Commit ca77e6c

Browse files
committed
Update README.ko to 19e0038
1 parent 77d693f commit ca77e6c

1 file changed

Lines changed: 106 additions & 10 deletions

File tree

README.ko.md

Lines changed: 106 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# GitHub Cheat Sheet
1+
# 깃허브 치트 시트
22

33
All the hidden and not hidden features of Git and GitHub. This cheat sheet was inspired by [Zach Holman](https://github.com/holman)'s [Git and GitHub Secrets](http://www.confreaks.com/videos/1229-aloharuby2012-git-and-github-secrets) talk at Aloha Ruby Conference 2012 ([slides](https://speakerdeck.com/holman/git-and-github-secrets)) and his [More Git and GitHub Secrets](https://vimeo.com/72955426) talk at WDCNZ 2013 ([slides](https://speakerdeck.com/holman/more-git-and-github-secrets)).
44

5-
# Contents
5+
# 목록
66

77
- [Ignore Whitespace](#ignore-whitespace)
88
- [Cloning a Repo](#cloning-a-repo)
99
- [Hub - Git Wrapper](#hub---git-wrapper)
10+
- [Decreasing Contributor Friction](#decreasing-contributor-friction)
1011
- [Previous Branch](#previous-branch)
1112
- [git.io](#gitio)
1213
- [Gists](#gists)
@@ -19,6 +20,7 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
1920
- [Empty Commits](#empty-commits)
2021
- [Comparing Branches](#comparing-branches)
2122
- [Line Highlighting in Repos](#line-highlighting-in-repos)
23+
- [Metadata and Plugin Support for GitHub Pages](#metadata-and-plugin-support-for-github-pages)
2224
- [Emojis](#emojis)
2325
- [Images/GIFs](#imagesgifs)
2426
- [Quick Quoting](#quick-quoting)
@@ -27,7 +29,8 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
2729
- [Git Query](#git-query)
2830
- [Merged Branches](#merged-branches)
2931
- [Quick Licensing](#quick-licensing)
30-
- [TODO Lists](#todo-lists)
32+
- [Task Lists](#task-lists)
33+
- [Relative Links](#relative-links)
3134
- [.gitconfig Recommendations](#gitconfig-recommendations)
3235
- [Aliases](#aliases)
3336
- [Auto-correct](#auto-correct)
@@ -37,6 +40,8 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
3740

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

43+
[*깃허브의 비밀을 더 읽어 보세요.*](https://github.com/blog/967-github-secrets)
44+
4045
## Cloning a Repo
4146

4247
저장소를 클론할 때, 맨 뒤의 `.git`은 생략할 수 있습니다.
@@ -45,6 +50,8 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
4550
$ git clone https://github.com/tiimgreen/github-cheat-sheet
4651
```
4752

53+
[*`clone` 커맨드에 대해 더 읽어 보세요.*](http://git-scm.com/docs/git-clone)
54+
4855
## Hub - Git Wrapper
4956

5057
[Hub](https://github.com/github/hub)는 깃허브를 좀 더 쉽게 사용할 수 있도록 추가 기능 및 명령을 제공하는 커맨드 라인 깃 래퍼입니다.
@@ -61,6 +68,16 @@ $ git clone https://github.com/tiimgreen/toc.git
6168
$ hub clone tiimgreen/toc
6269
```
6370

71+
[*Hub가 제공하는 더 멋진 기능들을 확인해 보세요.*](https://github.com/github/hub#commands)
72+
73+
## Decreasing Contributor Friction
74+
75+
사람들이 사용하고 기여할 수 있는 프로젝트를 만드려면, 가장 기본적인 질문에 대답할 수 있어야합니다. 이 프로젝트는 무엇입니까? 어떻게 사용합니까? 어디까지 허용됩니까? 어떻게 기여합니까? 어떻게 개발하고 실행해야 합니까? 어떻게 새로운 기능이 이전 기능을 손상되지 않았는지 확인해야 합니까?
76+
77+
[Friction](https://github.com/rafalchmiel/friction)은 이러한 일반적인 질문들의 답이 프로젝트 안에 있는지 확인하는 커맨드 라인 스크립트 입니다. 다음은 샘플 출력 입니다.
78+
79+
[![Friction output](http://i.imgur.com/4EgpWo4.png)](https://github.com/rafalchmiel/friction)
80+
6481
## Previous Branch
6582

6683
커맨드 라인에서 이전 디렉터리로 이동하려면 이렇게 합니다.
@@ -82,12 +99,16 @@ $ git checkout -
8299
# Switched to branch 'master'
83100
```
84101

102+
[*깃 브랜치에 대해 더 읽어 보세요.*](http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging)
103+
85104
## git.io
86105

87106
[git.io](http://git.io)는 깃허브를 위한 간단한 URL 단축기입니다.
88107

89108
[http://git.io/wO0xUg](http://git.io/wO0xUg)
90109

110+
[*Git.io에 대해 더 읽어 보세요.*](https://github.com/blog/985-git-io-github-url-shortener)
111+
91112
## Gists
92113

93114
[Gists](https://gist.github.com/)는 본격적인 저장소를 만들지 않고, 작은 코드 조각과 일할 수 있는 쉬운 방법입니다.
@@ -100,6 +121,8 @@ $ git clone https://gist.github.com/tiimgreen/10545817
100121

101122
![Gists](http://i.imgur.com/dULZXXo.png)
102123

124+
[*gist를 만드는 법에 대해 더 읽어보세요.*](https://help.github.com/articles/creating-gists)
125+
103126
## Keyboard Shortcuts
104127

105128
저장소 페이지에서 단축키를 사용하면 쉽게 이동할 수 있습니다.
@@ -110,13 +133,17 @@ $ git clone https://gist.github.com/tiimgreen/10545817
110133

111134
`s`를 누르면 검색 창으로 이동합니다.
112135

136+
`l`를 누르면 있는 이슈의 라벨을 수정할 수 있습니다.
137+
113138
__파일을 보고 있을 때__ (예를 들어 `https://github.com/tiimgreen/github-cheat-sheet/blob/master/README.md`) `y`를 누르면 URL을 지금 보고 있는 페이지를 사실상 고정하도록 합니다. 코드가 바뀐다고 해도 이번에 본 내용을 다시 볼 수 있습니다.
114139

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

142+
[*커맨드 바의 사용법을 더 읽어 보세요.*](https://help.github.com/articles/using-the-command-bar)
143+
117144
## Closing Issues with Commits
118145

119-
어떤 커밋이 이슈를 고쳤다면, `fix/fixes/fixed``close/closes/closed`를 키워드로 해당 이슈를 닫을 수 있습니다.
146+
어떤 커밋이 이슈를 고쳤다면, `fix/fixes/fixed``close/closes/closed`를 키워드로 해당 이슈가 마스터 브랜치에 커밋 될 때 닫을 수 있습니다.
120147

121148
```bash
122149
$ git commit -m "Fix cock up, fixes #12"
@@ -126,6 +153,8 @@ $ git commit -m "Fix cock up, fixes #12"
126153

127154
![Closing Repo](http://i.imgur.com/URXFprQ.png)
128155

156+
[*커밋 메세지로 이슈 닫기에 대해 더 읽어 보세요.*](https://help.github.com/articles/closing-issues-via-commit-messages)
157+
129158
## Checking out Pull Requests
130159

131160
풀 리퀘스트를 체크아웃하려면, 다음 명령어로 가져올 수 있습니다.
@@ -167,6 +196,8 @@ $ git checkout origin/pr/42
167196
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
168197
```
169198

199+
[*풀 리퀘스트를 로컬로 체크아웃 하는 방법에 대해 더 읽어 보세요.*](https://help.github.com/articles/checking-out-pull-requests-locally)
200+
170201
## Cross-link Issues
171202

172203
같은 저장소의 다른 이슈를 링크하기 원한다면, `#`뒤에 이슈 번호만 입력하시면 자동으로 링크됩니다.
@@ -195,6 +226,8 @@ puts table.to_s
195226

196227
깃허브는 [Linguist](https://github.com/github/linguist)를 사용해 언어를 감지하고 신텍스를 하이라이트합니다. [언어 YAML 파일](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml)을 정독하시면 어떤 키워드가 유효한지 확인하실 수 있습니다.
197228

229+
[*깃허브 Flavored 마크다운에 대해 더 읽어 보세요.*](https://help.github.com/articles/github-flavored-markdown)
230+
198231
## Commit History by Author
199232

200233
특정 커미터가 한 모든 커밋을 보고 싶다면 URL에 `?author=username`를 추가하세요.
@@ -203,6 +236,8 @@ puts table.to_s
203236
https://github.com/rails/rails/commits/master?author=dhh
204237
```
205238

239+
[*커밋 뷰간의 차이에 대해 더 읽어보세요.*](https://help.github.com/articles/differences-between-commit-views)
240+
206241
## Empty Commits
207242

208243
`--allow-empty`를 추가하시면 코드의 변경 없이 커밋을 넣을 수 있습니다.
@@ -237,6 +272,22 @@ https://github.com/rails/rails/compare/master@{2014-10-04}...master
237272

238273
이렇게 하면 특정 날짜나 한 시간 전의 마스터 브랜치의 차이를 확인할 수 있습니다.
239274

275+
[*시간으로 커밋을 비교하는 법에 대해 더 읽어 보세요.*](https://help.github.com/articles/comparing-commits-across-time)
276+
277+
### Compare branches across forked repositories
278+
279+
포크된 저장소간의 브랜치를 비교하려면 URL을 이렇게 변경하세요.
280+
281+
```
282+
https://github.com/user/repo/compare/{foreign-user}:{branch}...{own-branch}
283+
```
284+
285+
예를 들면
286+
287+
```
288+
https://github.com/rails/rails/compare/byroot:idempotent-counter-caches...master
289+
```
290+
240291
## Line Highlighting in Repos
241292

242293
코드 파일 URL의 끝에 `#L52`를 추가하거나 줄 번호를 클릭하면 그 줄 번호를 하이라이트합니다.
@@ -249,6 +300,14 @@ https://github.com/rails/rails/blob/master/activemodel/lib/active_model.rb#L53-L
249300

250301
![Line Highlighting](http://i.imgur.com/8AhjrCz.png)
251302

303+
## Metadata and Plugin Support for GitHub Pages
304+
305+
지킬로 작성된 페이지와 포스트에서, 저장소 정보는 예를 들어 `{{ site.github.project_title }}`처럼 `site.github` 이름 공간으로 사용하고 표시할 수 있습니다.
306+
307+
Jemoji와 jekyll-mentions플러그인은 GitHub.com에서 처럼 [emoji](#emojis)[@mentions](https://github.com/blog/821)을 지킬 포스트와 페이지에서 사용하게 합니다.
308+
309+
[*저장소 메타 데이타와 깃허브 페이지의 플러그인 지원에 대해 더 읽어 보세요.*](Repository metadata and plugin support for GitHub Pages)
310+
252311
## Emojis
253312

254313
에모지는 풀 리퀘스트, 이슈, 커밋 메세지, README등등에서 `:에모지의_이름:`으로 만들 수 있습니다.
@@ -283,15 +342,17 @@ https://github.com/rails/rails/blob/master/activemodel/lib/active_model.rb#L53-L
283342
![Alt Text](http://image_url.com/image.jpg)
284343
```
285344

286-
![Chuck Norris](http://gifs.joelglovier.com/chuck-norris/chuck-norris.gif)
345+
![Cat and Rabbit](http://i.imgur.com/PoBmL0W.gif)
287346

288347
모든 이미지는 GitHub에서 케쉬합니다. 그래서 호스트가 죽어도 이미지는 여전히 남습니다.
289348

290349
## Quick Quoting
291350

292351
스레드에 답글들 때 전에 누가 말한 어떤 내용을 인용하고 싶다면, 텍스트를 하이라이트하고 `r`을 누르세요. 이렇게 하면 내용을 텍스트 박스에 인용 포맷으로 복사해 줍니다.
293352

294-
![Quick Quote](http://i.imgur.com/TzpMIOA.png)
353+
![Quick Quote](https://f.cloud.github.com/assets/296432/124483/b0fa6204-6ef0-11e2-83c3-256c37fa7abc.gif)
354+
355+
[*빠른 인용에 대해 더 읽어 보세요.*](https://github.com/blog/1399-quick-quotes)
295356

296357
## Styled Git Status
297358

@@ -309,6 +370,8 @@ $ git status -sb
309370

310371
![git status -sb](http://i.imgur.com/xNI1bT0.png)
311372

373+
[*`status` 커맨드에 대해 더 읽어 보세요.*](http://git-scm.com/docs/git-status)
374+
312375
## Styled Git Log
313376

314377
```bash
@@ -319,6 +382,8 @@ $ git log --all --graph --decorate --oneline --abbrev-commit
319382

320383
NOTE: 이 명령을 알리아스 (단축 명령)으로 넣을 수 있습니다. [여기](#aliases)의 소개를 보세요.
321384

385+
[*`log` 커맨드에 대해 더 읽어 보세요.*](http://git-scm.com/docs/git-log)
386+
322387
## Git Query
323388

324389
깃 쿼리는 모든 이전 커밋 메시지에서 검색해 가장 최근의 쿼리에 맞는 커밋을 찾아줍니다.
@@ -332,7 +397,8 @@ $ git show :/query
332397
```bash
333398
$ git show :/typo
334399
```
335-
![git show :/query](http://i.imgur.com/SA0oZbE.png)
400+
401+
![git show :/query](http://i.imgur.com/icaGiNt.png)
336402

337403
NOTE: 나오려면 `q`를 누르세요.
338404

@@ -352,6 +418,8 @@ $ git branch --no-merged
352418

353419
이 명령어는 현재 브랜치에 머지되지 않은 브랜치의 목록을 보여줍니다.
354420

421+
[*`branch` 커맨드에 대해 더 읽어 보세요.*](http://git-scm.com/docs/git-branch)
422+
355423
## Quick Licensing
356424

357425
저장소를 만들 때, 깃허브는 만들어진 저작권을 추가할 수 있는 옵션을 제공합니다.
@@ -365,7 +433,9 @@ $ git branch --no-merged
365433

366434
`.gitignore`에도 똑같이 적용됩니다.
367435

368-
## TODO Lists
436+
[*오픈 소스 저작권에 대해 더 읽어 보세요.*](https://help.github.com/articles/open-source-licensing)
437+
438+
## Task Lists
369439

370440
이슈와 풀 리퀘스트에서 밑의 문법으로 체크박스를 넣을 수 있습니다.(스페이스에 주의하세요.)
371441

@@ -375,7 +445,7 @@ $ git branch --no-merged
375445
- [ ] Sleep
376446
```
377447

378-
![TODO List](http://i.imgur.com/k2qZi56.png)
448+
![Task List](http://i.imgur.com/k2qZi56.png)
379449

380450
체크박스가 클릭 되면, 순수 마크다운에서 갱신이 이루어집니다.
381451

@@ -385,6 +455,23 @@ $ git branch --no-merged
385455
- [ ] Sleep
386456
```
387457

458+
[*테스크 리스트에 대해 더 읽어 보세요.*](https://github.com/blog/1375%0A-task-lists-in-gfm-issues-pulls-comments)
459+
460+
## Relative Links
461+
462+
상대 경로 링크는 마크다운 파일이 내부 건탠츠로 링크될 때 추천합니다.
463+
464+
```markdown
465+
[Link to a header](#awesome-section)
466+
467+
[Link to a file](docs/readme)
468+
```
469+
470+
절대 경로 링크는 URL이 변경 될 때 마다 변경해야 합니다. (예를 들어 저장소 이름 변경, 유저이름 변경, 프로젝트 포크)
471+
상대 경로 링크를 사용하면 문서를 쉽게 스스로 독립적으로 만들 수 있습니다.
472+
473+
[*상대 경로 링크에 대해 더 읽어 보세요.*](https://help.github.com/articles/relative-links-in-readmes)
474+
388475
## .gitconfig Recommendations
389476

390477
`.gitconfig`는 모든 설정이 들어있는 파일입니다.
@@ -400,6 +487,10 @@ $ git branch --no-merged
400487
co = checkout
401488
cm = commit
402489
p = push
490+
# Show verbose output about tags, branches or remotes
491+
tags = tag -l
492+
branches = branch -a
493+
remotes = remote -v
403494
```
404495

405496
커맨드 라인에서 다음 명령을 입력합니다.
@@ -428,6 +519,9 @@ $ git config alias.ac 'add -A . && commit'
428519
| `git co` | `git checkout` | `git config --global alias.co checkout` |
429520
| `git ac` | `git add . -A` `git commit` | `git config --global alias.ac '!git add -A && git commit'` |
430521
| `git st` | `git status -sb` | `git config --global alias.st 'status -sb'` |
522+
| `git tags` | `git tag -l` | `git config --global alias.tags 'tag -l'` |
523+
| `git branches` | `git branch -a` | `git config --global alias.branches 'branch -a'` |
524+
| `git remotes` | `git remote -v` | `git config --global alias.remotes 'remote -v'` |
431525

432526
### Auto-correct
433527

@@ -464,6 +558,8 @@ $ git comit -m "Message"
464558
$ git config --global color.ui 1
465559
```
466560

561+
[*`config` 커맨드에 대해 더 읽어 보세요.*](http://git-scm.com/docs/git-config)
562+
467563
# Sharing
468564

469-
[트위터](https://twitter.com/intent/tweet?source=webclient&text=http%3A%2F%2Fgit.io%2FvvT17g%20-%20GitHub%20치트%20시트)에 공유하기
565+
[트위터](https://twitter.com/intent/tweet?source=webclient&text=http%3A%2F%2Fgit.io%2FvvT17g%20-%20깃허브%20치트%20시트)에 공유하기

0 commit comments

Comments
 (0)