Skip to content

Commit a97700c

Browse files
authored
Merge pull request #81 from pismute/e95aba-to-5026c45
update from e95aba to 5026c45
2 parents 4a4cbac + af35e13 commit a97700c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+304
-326
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ output
22
.DS_Store
33

44
# build artifacts
5+
Gemfile.lock
56
progit.html
67
progit.pdf
78
progit.pdfmarks

Gemfile.lock

Lines changed: 0 additions & 93 deletions
This file was deleted.

book/01-introduction/sections/basics.asc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,16 @@ Modified는 수정한 파일을 아직 로컬 데이터베이스에 커밋하지
182182
Staged란 현재 수정한 파일을 곧 커밋할 것이라고 표시한 상태를 의미한다.
183183
184184
//////////////////////////
185-
This leads us to the three main sections of a Git project: the Git directory, the working directory, and the staging area.
185+
This leads us to the three main sections of a Git project: the Git directory, the working tree, and the staging area.
186186
//////////////////////////
187-
이 세 가지 상태는 Git 프로젝트의 세 가지 단계와 연결돼 있다. Git 디렉토리, 워킹 디렉토리, Staging Area 이렇게 세 가지 단계를 이해하고 넘어가자.
187+
이 세 가지 상태는 Git 프로젝트의 세 가지 단계와 연결돼 있다. Git 디렉토리, 워킹 트리, Staging Area 이렇게 세 가지 단계를 이해하고 넘어가자.
188188
189189
//////////////////////////
190-
.Working directory, staging area, and Git directory.
191-
image::images/areas.png["Working directory, staging area, and Git directory."]
190+
.Working tree, staging area, and Git directory.
191+
image::images/areas.png["Working tree, staging area, and Git directory."]
192192
//////////////////////////
193-
.워킹 디렉토리, Staging Area, Git 디렉토리.
194-
image::images/areas.png["Working directory, staging area, and Git directory."]
193+
.워킹 트리, Staging Area, Git 디렉토리.
194+
image::images/areas.png["Working tree, staging area, and Git directory."]
195195
196196
//////////////////////////
197197
The Git directory is where Git stores the metadata and object database for your project.
@@ -201,11 +201,11 @@ Git 디렉토리는 Git이 프로젝트의 메타데이터와 객체 데이터
201201
이 Git 디렉토리가 Git의 핵심이다. 다른 컴퓨터에 있는 저장소를 Clone 할 때 Git 디렉토리가 만들어진다.
202202
203203
//////////////////////////
204-
The working directory is a single checkout of one version of the project.
204+
The working tree is a single checkout of one version of the project.
205205
These files are pulled out of the compressed database in the Git directory and placed on disk for you to use or modify.
206206
//////////////////////////
207-
워킹 디렉토리는 프로젝트의 특정 버전을 Checkout 한 것이다.
208-
Git 디렉토리는 지금 작업하는 디스크에 있고 그 디렉토리 안에 압축된 데이터베이스에서 파일을 가져와서 워킹 디렉토리를 만든다.
207+
워킹 트리는 프로젝트의 특정 버전을 Checkout 한 것이다.
208+
Git 디렉토리는 지금 작업하는 디스크에 있고 그 디렉토리 안에 압축된 데이터베이스에서 파일을 가져와서 워킹 트리를 만든다.
209209
210210
//////////////////////////
211211
The staging area is a file, generally contained in your Git directory, that stores information about what will go into your next commit.
@@ -220,11 +220,11 @@ The basic Git workflow goes something like this:
220220
Git으로 하는 일은 기본적으로 아래와 같다.
221221
222222
//////////////////////////
223-
1. You modify files in your working directory.
223+
1. You modify files in your working tree.
224224
2. You stage the files, adding snapshots of them to your staging area.
225225
3. You do a commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory.
226226
//////////////////////////
227-
1. 워킹 디렉토리에서 파일을 수정한다.
227+
1. 워킹 트리에서 파일을 수정한다.
228228
2. Staging Area에 파일을 Stage 해서 커밋할 스냅샷을 만든다.
229229
3. Staging Area에 있는 파일들을 커밋해서 Git 디렉토리에 영구적인 스냅샷으로 저장한다.
230230

book/01-introduction/sections/first-time-setup.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Windows에서도 `/etc/gitconfig` 파일은 그 경로에서 찾는다. 이 경
5959
The first thing you should do when you install Git is to set your user name and email address.
6060
This is important because every Git commit uses this information, and it's immutably baked into the commits you start creating:
6161
//////////////////////////
62-
Git을 설치하고 나서 가장 먼저 해야 하는 것은 사용자 이름과 이메일 주소를 설정하는 것이다.
62+
Git을 설치하고 나서 가장 먼저 해야 하는 것은 사용자이름과 이메일 주소를 설정하는 것이다.
6363
Git은 커밋할 때마다 이 정보를 사용한다. 한 번 커밋한 후에는 정보를 변경할 수 없다.
6464
6565
[source,console]

book/01-introduction/sections/installing.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ due to binary name differences.
183183
184184
//////////////////////////
185185
When you have all the necessary dependencies, you can go ahead and grab the latest tagged release tarball from several places.
186-
You can get it via the Kernel.org site, at https://www.kernel.org/pub/software/scm/git[], or the mirror on the GitHub web site, at https://github.com/git/git/releases[].
186+
You can get it via the Kernel.org site, at https://www.kernel.org/pub/software/scm/git[], or the mirror on the GitHub website, at https://github.com/git/git/releases[].
187187
It's generally a little clearer what the latest version is on the GitHub page, but the kernel.org page also has release signatures if you want to verify your download.
188188
//////////////////////////
189189
모든 준비가 완료되면, 최신 배포 버전을 가져와야 한다.

book/02-git-basics/sections/getting-a-repository.asc

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,44 @@ Git 저장소를 만드는 방법은 두 가지다.
1919
==== 기존 디렉토리를 Git 저장소로 만들기
2020
2121
//////////////////////////
22-
If you're starting to track an existing project in Git, you need to go to the project's directory and type:
22+
If you're starting to track an existing project in Git, you need to go to the project's directory. If you've never done this, it looks a little different depending on which system you're running:
2323
//////////////////////////
24-
기존 프로젝트를 Git으로 관리하고 싶을 때, 프로젝트의 디렉토리로 이동해서 아래과 같은 명령을 실행한다.
24+
기존 프로젝트를 Git으로 관리하고 싶을 때, 프로젝트의 디렉토리로 이동한다. 처음이라면 시스템마다 조금 다른 점을 주의하자.
25+
26+
//////////////////////////
27+
for Linux:
28+
//////////////////////////
29+
Linux:
30+
31+
[source,console]
32+
----
33+
$ cd /home/user/your_repository
34+
----
35+
36+
//////////////////////////
37+
for Mac:
38+
//////////////////////////
39+
Mac:
40+
41+
[source,console]
42+
----
43+
$ cd /Users/user/your_repository
44+
----
45+
46+
//////////////////////////
47+
for Windows:
48+
//////////////////////////
49+
Windows:
50+
51+
[source,console]
52+
----
53+
$ cd /c/user/your_repository
54+
----
55+
56+
//////////////////////////
57+
and type:
58+
//////////////////////////
59+
그리고 아래와 같은 명령을 실행한다:
2560
2661
[source,console]
2762
----

book/02-git-basics/sections/recording-changes.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ nothing to commit, working directory clean
5757
----
5858
5959
//////////////////////////
60-
This means you have a clean working directory – in other words, there are no tracked and modified files.
60+
This means you have a clean working directory – in other words, none of your tracked files are modified.
6161
Git also doesn't see any untracked files, or they would be listed here.
6262
Finally, the command tells you which branch you're on and informs you that it has not diverged from the same branch on the server.
6363
For now, that branch is always ``master'', which is the default; you won't worry about it here.
6464
<<_git_branching>> will go over branches and references in detail.
6565
//////////////////////////
66-
위의 내용은 파일을 하나도 수정하지 않았다는 것을 말해준다. Tracked나 Modified 상태인 파일이 없다는 의미다.
66+
위의 내용은 파일을 하나도 수정하지 않았다는 것을 말해준다. Tracked 파일은 하나도 수정되지 않았다는 의미다.
6767
Untracked 파일은 아직 없어서 목록에 나타나지 않는다.
6868
그리고 현재 작업 중인 브랜치를 알려주며 서버의 같은 브랜치로부터 진행된 작업이 없는 것을 나타낸다.
6969
기본 브랜치가 master이기 때문에 현재 브랜치 이름이 ``master''로 나온다. 브랜치 관련 내용은 차차 알아가자.

book/02-git-basics/sections/remotes.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,13 @@ What used to be referenced at `pb/master` is now at `paul/master`.
323323
여태까지 `pb/master`로 리모트 저장소 브랜치를 사용했으면 이제는 `paul/master`라고 사용해야 한다.
324324
325325
//////////////////////////
326-
If you want to remove a remote for some reason – you've moved the server or are no longer using a particular mirror, or perhaps a contributor isn't contributing anymore – you can use `git remote rm`:
326+
If you want to remove a remote for some reason – you've moved the server or are no longer using a particular mirror, or perhaps a contributor isn't contributing anymore – you can either use `git remote remove` or `git remote rm`:
327327
//////////////////////////
328-
리모트 저장소를 삭제해야 한다면 `git remote rm` 명령을 사용한다. 서버 정보가 바뀌었을 때, 더는 별도의 미러가 필요하지 않을 때, 더는 기여자가 활동하지 않을 때 필요하다.
328+
리모트 저장소를 삭제해야 한다면 `git remote remove`나 `git remote rm` 명령을 사용한다. 서버 정보가 바뀌었을 때, 더는 별도의 미러가 필요하지 않을 때, 더는 기여자가 활동하지 않을 때 필요하다.
329329
330330
[source,console]
331331
----
332-
$ git remote rm paul
332+
$ git remote remove paul
333333
$ git remote
334334
origin
335335
----

book/02-git-basics/sections/undoing.asc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You end up with a single commit – the second commit replaces the results of th
6565
==== 파일 상태를 Unstage로 변경하기
6666
6767
//////////////////////////
68-
The next two sections demonstrate how to wrangle your staging area and working directory changes.
68+
The next two sections demonstrate how to work with your staging area and working directory changes.
6969
The nice part is that the command you use to determine the state of those two areas also reminds you how to undo changes to them.
7070
For example, let's say you've changed two files and want to commit them as two separate changes, but you accidentally type `git add *` and stage them both.
7171
How can you unstage one of the two?
@@ -125,11 +125,12 @@ The `CONTRIBUTING.md` file is modified but once again unstaged.
125125
[NOTE]
126126
//////////////////////////
127127
=====
128-
While `git reset` _can_ be a dangerous command if you call it with `--hard`, in this instance the file in your working directory is not touched. Calling `git reset` without an option is not dangerous - it only touches your staging area.
128+
It's true that `git reset` can be a dangerous command, especially if you provide the `--hard` flag.
129+
However, in the scenario described above, the file in your working directory is not touched, so it's relatively safe.
129130
=====
130131
//////////////////////////
131132
=====
132-
`git reset` 명령을 `--hard` 옵션과 함께 사용하면 워킹 디렉토리의 파일까지 수정돼서 조심해야 한다. `--hard` 옵션만 사용하지 않는다면 `git reset` 명령은 Staging Area의 파일만 조작하기 때문에 위험하지 않다.
133+
`git reset` 명령은 매우 위험하다. `--hard` 옵션과 함께 사용하면 더욱 위험하다. 하지만 위에서 처럼 옵션 없이 사용하면 워킹 디렉토리의 파일은 건드리지 않는다.
133134
=====
134135
135136
//////////////////////////

book/02-git-basics/sections/viewing-history.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ In <<limit_options>> we'll list these and a few other common options for your re
426426
|================================
427427
428428
//////////////////////////
429-
For example, if you want to see which commits modifying test files in the Git source code history are merged and were committed by Junio Hamano in the month of October 2008, you can run something like this:(((log filtering)))
429+
For example, if you want to see which commits modifying test files in the Git source code history were committed by Junio Hamano in the month of October 2008 and are not merge commits, you can run something like this:(((log filtering)))
430430
//////////////////////////
431-
이제 살펴볼 예제는 Git 소스코드 저장소에서 2008년 10월에 Junio Hamano가 테스트 파일을 수정한 커밋 중 Merge 커밋을 제외한 순수한 커밋을 확인해보는 명령이다.(((log filtering)))
431+
이제 살펴볼 예제는 Merge 커밋을 제외한 순수한 커밋을 확인해보는 명령이다. Junio Hamano가 2008년 10월에 Git 소스코드 저장소에서 테스트 파일을 수정한 커밋들이다.(((log filtering)))
432432
433433
[source,console]
434434
----

0 commit comments

Comments
 (0)