1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-08 08:56:35 +02:00

Merge pull request #59 from marocchino/ko-translation

Translate Checking out Pull Requests (ko)
This commit is contained in:
Rafal Chmiel
2014-05-18 11:18:30 +01:00
3 changed files with 23 additions and 18 deletions

View File

@@ -562,7 +562,7 @@ $ git stripspace < README.md
特定のプルリクエストを取り込み、一時的に`FETCH_HEAD`として保存すると、素早く差分を確認してマージすることが可能だ:
```bash
git fetch origin refs/pull/[PR-Number]
$ git fetch origin refs/pull/[PR-Number]
```
参照仕様を使うとすべてのプルリクエストをローカル・ブランチとして取り込むことができる:

View File

@@ -2,6 +2,8 @@
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)).
*Shortlink: [`http://git.io/sheet`](http://git.io/sheet)*
*Read this in other languages: [English](README.md), [한국어](README.ko.md), [日本語](README.ja.md), [简体中文](README.zh-cn.md).*
# 목록
@@ -609,31 +611,25 @@ $ git stripspace < README.md
### Checking out Pull Requests
풀 리퀘스트를 체크아웃하려면, 다음 명령어로 가져올 수 있습니다.
풀 리퀘스트는 깃허브 저장소에서 사용하는 특별한 브랜치로 여러 방법으로 로컬로
가져 올수 있습니다.
빠르게 `diff`나 `merge`를 하기위해 특정 풀 리퀘스트를 임시로 `FETCH_HEAD`로
가져오려면 이렇게 합니다.
```bash
$ git fetch origin '+refs/pull/*/head:refs/pull/*'
$ git fetch origin refs/pull/[PR-Number]
```
그리고 다음 명령을 사용해 풀 리퀘스트(예를 들어 42라면)를 체크아웃합니다.
```bash
$ git checkout refs/pull/42
```
아니면, 리모트 브랜치에서 가져올 수도 있습니다.
모든 풀 리퀘스트 브랜치를 refspec에 의한 로컬 리모트 브랜치로 받을 수도
있습니다.
```bash
$ git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
```
그리고 체크아웃은 이렇게 합니다.
```bash
$ git checkout origin/pr/42
```
그리고 밑의 줄을 .git/config에 추가하면, 자동으로 가져오게도 할 수 있습니다.
밑의 줄들을 저장소의 `.git/config`에 추가하여, 리모트의 풀 리퀘스트를 자동으로
가져오게도 할 수 있습니다.
```
[remote "origin"]
@@ -648,6 +644,13 @@ $ git checkout origin/pr/42
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
```
포크 기반의 풀 리퀘스트 기여를 위해, 풀 리퀘스트의 리모트 브랜치를 `checkout`해
로컬 브랜치를 만드는 것은 유용합니다.
```bash
$ git checkout pr/42 pr-42
```
[*풀 리퀘스트를 로컬로 체크아웃 하는 방법에 대해 더 읽어 보세요.*](https://help.github.com/articles/checking-out-pull-requests-locally)
### Empty Commits :trollface:
@@ -804,6 +807,8 @@ $ git config --global alias.ac 'add -A . && commit'
| `git remotes` | `git remote -v` | `git config --global alias.remotes 'remote -v'` |
| `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 --"` |
*일부 알리아스는 [@mathiasbynens](https://github.com/mathiasbynens)님의 dotfiles에서 가져왔습니다.(https://github.com/mathiasbynens/dotfiles/blob/master/.gitconfig)*
#### Auto-correct
현재 `git comit`를 치면 이런 결과를 보실 수 있습니다.

View File

@@ -563,7 +563,7 @@ Pull Requests are special branches on the GitHub repository which can be retriev
Retrieve a specific Pull Request and store it temporarily in `FETCH_HEAD` for quickly `diff`ing or `merge`ing:
```bash
git fetch origin refs/pull/[PR-Number]
$ git fetch origin refs/pull/[PR-Number]
```
Acquire all Pull Request branches as local remote branches by refspec: