8000 Merge pull request #59 from marocchino/ko-translation · dedurus/github-cheat-sheet@f8a1db6 · GitHub
[go: up one dir, main page]

Skip to content

Commit f8a1db6

Browse files
author
Rafal Chmiel
committed
Merge pull request tiimgreen#59 from marocchino/ko-translation
Translate Checking out Pull Requests (ko)
2 parents ad73e5f + 36a983e commit f8a1db6

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

README.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ $ git stripspace < README.md
562562
特定のプルリクエストを取り込み、一時的に`FETCH_HEAD`として保存すると、素早く差分を確認してマージすることが可能だ:
563563

564564
```bash
565-
git fetch origin refs/pull/[PR-Number]
565+
$ git fetch origin refs/pull/[PR-Number]
566566
```
567567

568568
参照仕様を使うとすべてのプルリクエストをローカル・ブランチとして取り込むことができる:

README.ko.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A collection of cool hidden and not so 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+
*Shortlink: [`http://git.io/sheet`](http://git.io/sheet)*
6+
57
*Read this in other languages: [English](README.md), [한국어](README.ko.md), [日本語](README.ja.md), [简体中文](README.zh-cn.md).*
68

79
# 목록
@@ -609,31 +611,25 @@ $ git stripspace < README.md
609611

610612
### Checking out Pull Requests
611613

612-
풀 리퀘스트를 체크아웃하려면, 다음 명령어로 가져올 수 있습니다.
613-
614-
```bash
615-
$ git fetch origin '+refs/pull/*/head:refs/pull/*'
616-
```
614+
풀 리퀘스트는 깃허브 저장소에서 사용하는 특별한 브랜치로 여러 방법으로 로컬로
615+
가져 올수 있습니다.
617616

618-
그리고 다음 명령을 사용해 풀 리퀘스트(예를 들어 42라면)를 체크아웃합니다.
617+
빠르게 `diff``merge`를 하기위해 특정 풀 리퀘스트를 임시로 `FETCH_HEAD`
618+
가져오려면 이렇게 합니다.
619619

620620
```bash
621-
$ git checkout refs/pull/42
621+
$ git fetch origin refs/pull/[PR-Number]
622622
```
623623

624-
아니면, 리모트 브랜치에서 가져올 수도 있습니다.
624+
모든 풀 리퀘스트 브랜치를 refspec에 의한 로컬 리모트 브랜치로 받을 수도
625+
있습니다.
625626

626627
```bash
627628
$ git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
628629
```
629630

630-
그리고 체크아웃은 이렇게 합니다.
631-
632-
```bash
633-
$ git checkout origin/pr/42
634-
```
635-
636-
그리고 밑의 줄을 .git/config에 추가하면, 자동으로 가져오게도 할 수 있습니다.
631+
밑의 줄들을 저장소의 `.git/config`에 추가하여, 리모트의 풀 리퀘스트를 자동으로
632+
가져오게도 할 수 있습니다.
637633

638634
```
639635
[remote "origin"]
@@ -648,6 +644,13 @@ $ git checkout origin/pr/42
648644
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
649645
```
650646

647+
포크 기반의 풀 리퀘스트 기여를 위해, 풀 리퀘스트의 리모트 브랜치를 `checkout`
648+
로컬 브랜치를 만드는 것은 유용합니다.
649+
650+
```bash
651+
$ git checkout pr/42 pr-42
652+
```
653+
651654
[*풀 리퀘스트를 로컬로 체크아웃 하는 방법에 대해 더 읽어 보세요.*](https://help.github.com/articles/checking-out-pull-requests-locally)
652655

653656
### Empty Commits :trollface:
@@ -804,6 +807,8 @@ $ git config --global alias.ac 'add -A . && commit'
804807
| `git remotes` | `git remote -v` | `git config --global alias.remotes 'remote -v'` |
805808
| `git lg` | `git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --` | `git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"` |
806809

810+
*일부 알리아스는 [@mathiasbynens](https://github.com/mathiasbynens)님의 dotfiles에서 가져왔습니다.(https://github.com/mathiasbynens/dotfiles/blob/master/.gitconfig)*
811+
807812
#### Auto-correct
808813

809814
현재 `git comit`를 치면 이런 결과를 보실 수 있습니다.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ Pull Requests are special branches on the GitHub repository which can be retriev
563563
Retrieve a specific Pull Request and store it temporarily in `FETCH_HEAD` for quickly `diff`ing or `merge`ing:
564564

565565
```bash
566-
git fetch origin refs/pull/[PR-Number]
566+
$ git fetch origin refs/pull/[PR-Number]
567567
```
568568

569569
Acquire all Pull Request branches as local remote branches by refspec:

0 commit comments

Comments
 (0)
0