Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BASE.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
progit/progit2@23b7aa2c8867a9961f53e6a8ccfb6c3826409787
progit/progit2@98c409c69dfbfbdffdc4b6dd083940638d2dcb6e
Binary file modified book/01-introduction/images/areas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified book/01-introduction/images/centralized.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified book/01-introduction/images/deltas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified book/01-introduction/images/distributed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified book/01-introduction/images/git-osx-installer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified book/01-introduction/images/local.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified book/01-introduction/images/snapshots.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion book/01-introduction/sections/basics.asc
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Git으로 하는 일은 기본적으로 아래와 같다.

//////////////////////////
If a particular version of a file is in the Git directory, it's considered committed.
If it's modified but has been added to the staging area, it is staged.
If it has been modified but was added to the staging area, it is staged.
And if it was changed since it was checked out but has not been staged, it is modified.
In <<_git_basics_chapter>>, you'll learn more about these states and how you can either take advantage of them or skip the staged part entirely.
//////////////////////////
Expand Down
12 changes: 8 additions & 4 deletions book/01-introduction/sections/first-time-setup.asc
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,19 @@ Each level overrides values in the previous level, so values in `.git/config` tr
//////////////////////////
On Windows systems, Git looks for the `.gitconfig` file in the `$HOME` directory (`C:\Users\$USER` for most people).
It also still looks for `/etc/gitconfig`, although it's relative to the MSys root, which is wherever you decide to install Git on your Windows system when you run the installer.
However, if you are using Git for Windows 2.x, it is `C:\Documents and Settings\All Users\Application Data\Git\config` on Windows XP, and it is `C:\ProgramData\Git\config` on Windows Vista and newer.
//////////////////////////
윈도에서는 `$HOME` 디렉토리에서 `.gitconfig` 파일을 찾는다(아마도 `C:\Users\$USER` 디렉토리).
윈도에서도 `/etc/gitconfig` 파일은 그 경로에서 찾는다. 이 경로는 아마도 MSys 루트의 상대경로일 텐데, MSys 루트는 인스톨러로 Git을 윈도에 설치할 때 결정된다.
'Git for Windows' 2.x 버전에서는 조금 다르다. 윈도 XP 사용자는 `C:\Documents and Settings\All Users\Application Data\Git\config` 디렉토리에서 찾을 수 있고 윈도 Vista 이후 버전 사용자는 `C:\ProgramData\Git\config`에서 찾을 수 있다.

//////////////////////////
==== Your Identity
//////////////////////////
==== 사용자 정보

//////////////////////////
The first thing you should do when you install Git is to set your user name and e-mail address.
The first thing you should do when you install Git is to set your user name and email address.
This is important because every Git commit uses this information, and it's immutably baked into the commits you start creating:
//////////////////////////
Git을 설치하고 나서 가장 먼저 해야 하는 것은 사용자 이름과 이메일 주소를 설정하는 것이다.
Expand All @@ -65,7 +67,7 @@ $ git config --global user.email johndoe@example.com

//////////////////////////
Again, you need to do this only once if you pass the `--global` option, because then Git will always use that information for anything you do on that system.
If you want to override this with a different name or e-mail address for specific projects, you can run the command without the `--global` option when you're in that project.
If you want to override this with a different name or email address for specific projects, you can run the command without the `--global` option when you're in that project.
//////////////////////////
다시 말하자면 `--global` 옵션으로 설정한 것은 딱 한 번만 하면 된다. 해당 시스템에서 해당 사용자가 사용할 때에는 이 정보를 사용한다.
만약 프로젝트마다 다른 이름과 이메일 주소를 사용하고 싶으면 `--global` 옵션을 빼고 명령을 실행한다.
Expand Down Expand Up @@ -96,11 +98,13 @@ $ git config --global core.editor emacs

[WARNING]
//////////////////////////
Vim and Emacs are popular text editors often used by developers on Unix based systems like Linux and Mac. If you are not familiar with either of these editors or are on a Windows system, you may need to search for instructions for how to set up your favorite editor with Git.
Vim and Emacs are popular text editors often used by developers on Unix based systems like Linux and Mac.
If you are not familiar with either of these editors or are on a Windows system, you may need to search for instructions for how to set up your favorite editor with Git.
If you don't set an editor like this and you don't know what Vim or Emacs are, you will likely get into a really confusing state when they are launched.
//////////////////////////
====
Vim과 Emacs는 Mac과 Linux같은 Unix 시스템에서 개발자에게 꽤 인기있는 편집기다. 이 편집기가 불편하거나 윈도를 사용하거나 해서 다른 편집기를 사용해야 한다면 Git 편집기로 설정하는 방법을 찾아봐야 한다.
Vim과 Emacs는 Mac과 Linux같은 Unix 시스템에서 개발자에게 꽤 인기있는 편집기다.
이 편집기가 불편하거나 윈도를 사용하거나 해서 다른 편집기를 사용해야 한다면 Git 편집기로 설정하는 방법을 찾아봐야 한다.
Vim이나 Emacs을 사용할 줄 모르고 다른 편집기로 설정하지도 못했는데 갑자기 실행되면 정말 멘붕이다.
====

Expand Down
72 changes: 52 additions & 20 deletions book/01-introduction/sections/installing.asc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ Git을 사용하려면 우선 설치해야 한다.
[NOTE]
//////////////////////////
====
This book was written using Git version *2.0.0*. Though most of the commands we use should work even in ancient versions of Git, some of them might not or might act slightly differently if you're using an older version. Since Git is quite excellent at preserving backwards compatibility, any version after 2.0 should work just fine.
This book was written using Git version *2.0.0*.
Though most of the commands we use should work even in ancient versions of Git, some of them might not or might act slightly differently if you're using an older version.
Since Git is quite excellent at preserving backwards compatibility, any version after 2.0 should work just fine.
====
//////////////////////////
====
이 책은 Git *2.0.0* 버전을 기준으로 썼다. 그래도 대부분의 명령어는 그 이전 버전에서도 잘 동작한다. 하지만, 몇 가지 기능은 아예 없거나 미묘하게 다를 수 있다. Git은 정말 이전 버전과 잘 호환되도록 유지하기 때문에 2.0 이후 버전에서는 잘 동작한다.
이 책은 Git *2.0.0* 버전을 기준으로 썼다.
그래도 대부분의 명령어는 그 이전 버전에서도 잘 동작한다. 하지만, 몇 가지 기능은 아예 없거나 미묘하게 다를 수 있다.
Git은 정말 이전 버전과 잘 호환되도록 유지하기 때문에 2.0 이후 버전에서는 잘 동작한다.
====

//////////////////////////
Expand All @@ -36,15 +40,19 @@ Linux에서 패키지로 Git을 설치할 때에는 보통 각 배포판에서
Fedora에서는 아래와 같이 한다.

[source,console]
$ sudo yum install git
----
$ sudo yum install git
----

//////////////////////////
If you're on a Debian-based distribution like Ubuntu, try apt-get:
//////////////////////////
Ubuntu같은 데비안류 배포판에서는 apt-get을 사용한다.

[source,console]
$ sudo apt-get install git
----
$ sudo apt-get install git
----

//////////////////////////
For more options, there are instructions for installing on several different Unix flavors on the Git website, at http://git-scm.com/download/linux[].
Expand Down Expand Up @@ -99,12 +107,12 @@ You can download that tool from the GitHub for Mac website, at http://mac.github
There are also a few ways to install Git on Windows.(((Windows, installing)))
The most official build is available for download on the Git website.
Just go to http://git-scm.com/download/win[] and the download will start automatically.
Note that this is a project called Git for Windows (also called msysGit), which is separate from Git itself; for more information on it, go to http://msysgit.github.io/[].
Note that this is a project called Git for Windows, which is separate from Git itself; for more information on it, go to https://git-for-windows.github.io/[].
//////////////////////////
윈도에 Git을 설치하는 방법은 여러 가지다.(((Windows, installing)))
공식 배포판은 Git 웹사이트에서 내려받을 수 있다.
http://git-scm.com/download/win[]에 가면 자동으로 내려받는다.
이 프로젝트가 'Git for Windows(msysGit)'인데, Git 자체와는 다른 별도의 프로젝트다. 자세한 정보는 http://msysgit.github.io/[]에서 확인한다.
이 프로젝트가 'Git for Windows'인데, Git 자체와는 다른 별도의 프로젝트다. 자세한 정보는 https://git-for-windows.github.io/[]에서 확인한다.

//////////////////////////
Another easy way to get Git installed is by installing GitHub for Windows.
Expand Down Expand Up @@ -139,19 +147,39 @@ Git을 설치하려면 아래와 같은 라이브러리들이 필요하다. Git
예를 들어 Fedora처럼 yum을 사용하는 시스템이나 apt-get이 있는 데비안류 시스템이면 아래 명령어를 실행하여 의존 패키지를 설치할 수 있다.

[source,console]
$ sudo yum install curl-devel expat-devel gettext-devel \
openssl-devel zlib-devel
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
libz-dev libssl-dev
----
$ sudo yum install curl-devel expat-devel gettext-devel \
openssl-devel zlib-devel
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
libz-dev libssl-dev
----

//////////////////////////
In order to be able to add the documentation in various formats (doc, html, info), these additional dependencies are required:
In order to be able to add the documentation in various formats (doc, html, info), these additional dependencies are required (Note: users of RHEL and RHEL-derivatives like CentOS and Scientific Linux will have to https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F[enable the EPEL repository] to download the `docbook2X` package):
//////////////////////////
다양한 형식의 문서를 이용하려면 아래의 의존 패키지가 필요하다.
다양한(doc, html, info) 형식의 문서를 이용하려면 아래의 의존 패키지가 필요하다(주의: CentOS나 Scientific Linux 같은 RHEL류(derivatives) 사용자는 https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F[EPEL 저장소를 켜고] `docbook2X` 패키지를 다운로드해야 한다.

[source,console]
$ sudo yum install asciidoc xmlto docbook2x
$ sudo apt-get install asciidoc xmlto docbook2x
----
$ sudo yum install asciidoc xmlto docbook2X
$ sudo apt-get install asciidoc xmlto docbook2x
----

//////////////////////////
Additionally, if you're using Fedora/RHEL/RHEL-derivatives, you need to do this
//////////////////////////
Fedora/RHEL/RHEL류 사용자라면 아래 명령도 필요하다.

[source,console]
----
$ sudo ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
----

//////////////////////////
due to binary name differences.
//////////////////////////
바이너리 이름이 달라서 그렇다.

//////////////////////////
When you have all the necessary dependencies, you can go ahead and grab the latest tagged release tarball from several places.
Expand All @@ -168,17 +196,21 @@ Then, compile and install:
그리고 컴파일하고 설치한다.

[source,console]
$ tar -zxf git-2.0.0.tar.gz
$ cd git-2.0.0
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info
----
$ tar -zxf git-2.0.0.tar.gz
$ cd git-2.0.0
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info
----

//////////////////////////
After this is done, you can also get Git via Git itself for updates:
//////////////////////////
설치하고 나면 Git을 사용하여 Git 소스코드를 수정할 수도 있다.

[source,console]
$ git clone git://git.kernel.org/pub/scm/git/git.git
----
$ git clone git://git.kernel.org/pub/scm/git/git.git
----
Binary file modified book/02-git-basics/images/lifecycle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion book/02-git-basics/sections/aliases.asc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This makes the following two commands equivalent:
[source,console]
----
$ git unstage fileA
$ git reset HEAD fileA
$ git reset HEAD -- fileA
----

//////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion book/02-git-basics/sections/getting-a-repository.asc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Git 저장소를 만드는 방법은 두 가지다.
==== 기존 디렉토리를 Git 저장소로 만들기

//////////////////////////
If you're starting to track an existing project in Git, you need to go to the project's directory and type
If you're starting to track an existing project in Git, you need to go to the project's directory and type:
//////////////////////////
기존 프로젝트를 Git으로 관리하고 싶을 때, 프로젝트의 디렉토리로 이동해서 아래과 같은 명령을 실행한다.

Expand Down
Loading