You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: C-git-commands.asc
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ In this appendix, we'll go through all the Git commands we addressed throughout
25
25
//////////////////////////
26
26
There are two commands that are used quite a lot, from the first invocations of Git to common every day tweaking and referencing, the `config` and `help` commands.
27
27
//////////////////////////
28
-
정말 많이 사용하는 명령어가 두 개 있다. 바로 `config`와 `help` 명령이다. 이 명령은 매일 사용한다.
28
+
정말 많이 사용하는 명령어가 두 개 있다. 바로 `config`와 `help` 명령이다. 이 명령은 매일 사용한다.
29
29
30
30
==== git config
31
31
@@ -116,7 +116,7 @@ We first introduce this in <<ch02-git-basics#r_getting_a_repo>>, where we show c
116
116
//////////////////////////
117
117
We talk briefly about how you can change the default branch from ``master'' in <<ch03-git-branching#r_remote_branches>>.
118
118
//////////////////////////
119
-
``master''에서 다른 브랜치로 변경하는 방법은 <<ch03-git-branching#r_remote_branches>>에 소개한다.
119
+
``master''에서 다른 브랜치로 변경하는 방법은 <<ch03-git-branching#r_remote_branches>>에 소개한다.
120
120
121
121
//////////////////////////
122
122
We use this command to create an empty bare repository for a server in <<ch04-git-server#r_bare_repo>>.
@@ -134,8 +134,8 @@ Finally, we go through some of the details of what it actually does behind the s
134
134
The `git clone` command is actually something of a wrapper around several other commands.
135
135
It creates a new directory, goes into it and runs `git init` to make it an empty Git repository, adds a remote (`git remote add`) to the URL that you pass it (by default named `origin`), runs a `git fetch` from that remote repository and then checks out the latest commit into your working directory with `git checkout`.
136
136
//////////////////////////
137
-
`git clone`은 사실 다른 명령어를 몇 개 실행한다.
138
-
디렉토리를 만들고 디렉토리로 들어가고 나서 `git init` 명령으로 빈 Git 저장소를 만든다. 그다음 입력한 URL을 `origin`이라는(기본값) 이름의 리모트로 추가하고(`git remote add`) `git fetch` 명령으로 리모트 저장소에서 데이터를 가져온다. 마지막으로 최종 커밋을 워킹 디렉토리에 Checkout 한다(`git checkout`).
137
+
`git clone`은 사실 다른 명령어를 몇 개 실행한다.
138
+
디렉토리를 만들고 디렉토리로 들어가고 나서 `git init` 명령으로 빈 Git 저장소를 만든다. 그다음 입력한 URL을 `origin`이라는(기본값) 이름의 리모트로 추가하고(`git remote add`) `git fetch` 명령으로 리모트 저장소에서 데이터를 가져온다. 마지막으로 최종 커밋을 워킹 디렉토리에 Checkout 한다(`git checkout`).
139
139
140
140
//////////////////////////
141
141
The `git clone` command is used in dozens of places throughout the book, but we'll just list a few interesting places.
@@ -332,7 +332,7 @@ We then cover it in quite some detail in <<ch07-git-tools#r_git_reset>>, which i
332
332
//////////////////////////
333
333
We use `git reset --hard` to abort a merge in <<ch07-git-tools#r_abort_merge>>, where we also use `git merge --abort`, which is a bit of a wrapper for the `git reset` command.
334
334
//////////////////////////
335
-
`git reset --hard` 명령으로 충돌 시 Merge를 취소할 수 있다. `git merge --abort`로도 같은 일을 할 수 있는데 이 명령은 `git reset` 명령어의 Wrapper다. 이 내용은 <<ch07-git-tools#r_abort_merge>>에서 설명한다.
335
+
`git reset --hard` 명령으로 충돌 시 Merge를 취소할 수 있다. `git merge --abort`로도 같은 일을 할 수 있는데 이 명령은 `git reset` 명령어의 Wrapper다. 이 내용은 <<ch07-git-tools#r_abort_merge>>에서 설명한다.
336
336
337
337
==== git rm
338
338
@@ -625,7 +625,7 @@ Fetch 하는 기본 Refspec을 수정하는 방법은 <<ch10-git-internals#r_ref
625
625
//////////////////////////
626
626
The `git pull` command is basically a combination of the `git fetch` and `git merge` commands, where Git will fetch from the remote you specify and then immediately try to merge it into the branch you're on.
627
627
//////////////////////////
628
-
`git pull` 명령은 `git fetch`와 `git merge` 명령을 순서대로 실행하는 것뿐이다. 그래서 해당 리모트에서 Fetch 하고 즉시 현 브랜치로 Merge를 시도한다.
628
+
`git pull` 명령은 `git fetch`와 `git merge` 명령을 순서대로 실행하는 것뿐이다. 그래서 해당 리모트에서 Fetch 하고 즉시 현 브랜치로 Merge를 시도한다.
629
629
630
630
//////////////////////////
631
631
We introduce it quickly in <<ch02-git-basics#r_fetching_and_pulling>> and show how to see what it will merge if you run it in <<ch02-git-basics#r_inspecting_remote>>.
@@ -951,7 +951,7 @@ This is useful for receiving patches over email and applying them to your projec
951
951
//////////////////////////
952
952
We covered usage and workflow around `git am` in <<ch05-distributed-git#r_git_am>> including using the `--resolved`, `-i` and `-3` options.
953
953
//////////////////////////
954
-
`git am`을 언제 어떻게 사용하는지는 <<ch05-distributed-git#r_git_am>>에서 다룬다. `--resolved`, `-i`, `-3` 옵션 사용법을 설명한다.
954
+
`git am`을 언제 어떻게 사용하는지는 <<ch05-distributed-git#r_git_am>>에서 다룬다. `--resolved`, `-i`, `-3` 옵션 사용법을 설명한다.
955
955
956
956
//////////////////////////
957
957
There are also a number of hooks you can use to help with the workflow around `git am` and they are all covered in <<ch08-customizing-git#r_email_hooks>>.
Copy file name to clipboardExpand all lines: book/01-introduction/sections/first-time-setup.asc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,12 @@ These variables can be stored in three different places:
31
31
`git config --system` 옵션으로 이 파일을 읽고 쓸 수 있다.
32
32
2. `~/.gitconfig`, `~/.config/git/config` 파일: 특정 사용자에게만 적용되는 설정이다.
33
33
`git config --global` 옵션으로 이 파일을 읽고 쓸 수 있다.
34
-
3. `.git/config`: 이 파일은 Git 디렉토리에 있고 특정 저장소(혹은 현재 작업 중인 프로젝트)에만 적용된다.
34
+
3. `.git/config`: 이 파일은 Git 디렉토리에 있고 특정 저장소(혹은 현재 작업 중인 프로젝트)에만 적용된다.
35
35
36
36
//////////////////////////
37
37
Each level overrides values in the previous level, so values in `.git/config` trump those in `/etc/gitconfig`.
38
38
//////////////////////////
39
-
각 설정은 역순으로 우선시 된다. 그래서 `.git/config`가 `/etc/gitconfig`보다 우선한다.
39
+
각 설정은 역순으로 우선시 된다. 그래서 `.git/config`가 `/etc/gitconfig`보다 우선한다.
40
40
41
41
//////////////////////////
42
42
On Windows systems, Git looks for the `.gitconfig` file in the `$HOME` directory (`C:\Users\$USER` for most people).
@@ -47,7 +47,7 @@ This config file can only be changed by `git config -f <file>` as an admin.
47
47
//////////////////////////
48
48
Windows에서는 `$HOME` 디렉토리에서 `.gitconfig` 파일을 찾는다(아마도 `C:\Users\$USER` 디렉토리).
49
49
Windows에서도 `/etc/gitconfig` 파일은 그 경로에서 찾는다. 이 경로는 아마도 MSys 루트의 상대경로일 텐데, MSys 루트는 인스톨러로 Git을 Windows에 설치할 때 결정된다.
50
-
'Git for Windows' 2.x 버전에서는 조금 다르다. Windows XP 사용자는 `C:\Documents and Settings\All Users\Application Data\Git\config` 디렉토리에서 찾을 수 있고 Windows Vista 이후 버전 사용자는 `C:\ProgramData\Git\config`에서 찾을 수 있다.
50
+
'Git for Windows' 2.x 버전에서는 조금 다르다. Windows XP 사용자는 `C:\Documents and Settings\All Users\Application Data\Git\config` 디렉토리에서 찾을 수 있고 Windows Vista 이후 버전 사용자는 `C:\ProgramData\Git\config`에서 찾을 수 있다.
51
51
이 시스템 설정 파일의 경로는 `git config -f <file>` 명령으로 변경할 수 있다. 관리자 권한이 필요하다.
52
52
53
53
//////////////////////////
@@ -174,7 +174,7 @@ color.diff=auto
174
174
You may see keys more than once, because Git reads the same key from different files (`/etc/gitconfig` and `~/.gitconfig`, for example).
175
175
In this case, Git uses the last value for each unique key it sees.
176
176
//////////////////////////
177
-
Git은 같은 키를 여러 파일(`/etc/gitconfig`와 `~/.gitconfig` 같은)에서 읽기 때문에 같은 키가 여러 개 있을 수도 있다.
177
+
Git은 같은 키를 여러 파일(`/etc/gitconfig`와 `~/.gitconfig` 같은)에서 읽기 때문에 같은 키가 여러 개 있을 수도 있다.
Copy file name to clipboardExpand all lines: book/02-git-basics/sections/getting-a-repository.asc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ At this point, nothing in your project is tracked yet.
74
74
75
75
//////////////////////////
76
76
If you want to start version-controlling existing files (as opposed to an empty directory), you should probably begin tracking those files and do an initial commit.
77
-
You can accomplish that with a few `git add` commands that specify the files you want to track, followed by a `git commit`:
77
+
You can accomplish that with a few `git add` commands that specify the files you want to track, followed by a `git commit`:
78
78
//////////////////////////
79
79
Git이 파일을 관리하게 하려면 저장소에 파일을 추가하고 커밋해야 한다.
80
80
`git add` 명령으로 파일을 추가하고 `git commit` 명령으로 커밋한다:
@@ -109,7 +109,7 @@ In fact, if your server disk gets corrupted, you can often use nearly any of the
109
109
다른 프로젝트에 참여하려거나(Contribute) Git 저장소를 복사하고 싶을 때 `git clone` 명령을 사용한다.
110
110
이미 Subversion 같은 VCS에 익숙한 사용자에게는 "checkout" 이 아니라 "clone" 이라는 점이 도드라져 보일 것이다.
111
111
Git이 Subversion과 다른 가장 큰 차이점은 서버에 있는 거의 모든 데이터를 복사한다는 것이다.
112
-
`git clone`을 실행하면 프로젝트 히스토리를 전부 받아온다.
112
+
`git clone`을 실행하면 프로젝트 히스토리를 전부 받아온다.
113
113
실제로 서버의 디스크가 망가져도 클라이언트 저장소 중에서 아무거나 하나 가져다가 복구하면 된다(서버에만 적용했던 설정은 복구하지 못하지만 모든 데이터는 복구된다 - <<ch04-git-server#r_git_on_the_server>>에서 좀 더 자세히 다룬다).
114
114
115
115
//////////////////////////
@@ -149,5 +149,5 @@ The previous example uses the `https://` protocol, but you may also see `git://`
149
149
<<ch04-git-server#r_git_on_the_server>> will introduce all of the available options the server can set up to access your Git repository and the pros and cons of each.
150
150
//////////////////////////
151
151
Git은 다양한 프로토콜을 지원한다.
152
-
이제까지는 `https://` 프로토콜을 사용했지만 `git://`를 사용할 수도 있고 `user@server:path/to/repo.git` 처럼 SSH 프로토콜을 사용할 수도 있다.
152
+
이제까지는 `https://` 프로토콜을 사용했지만 `git://`를 사용할 수도 있고 `user@server:path/to/repo.git` 처럼 SSH 프로토콜을 사용할 수도 있다.
153
153
자세한 내용은 <<ch04-git-server#r_git_on_the_server>>에서 다루며 각 프로토콜의 장단점과 Git 저장소에 접근하는 방법을 설명한다.
0 commit comments