Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
373 commits
Select commit Hold shift + click to select a range
b4f62e0
difftool reference?
schacon Dec 8, 2014
84d3caa
Merge branch 'epub-fix'
schacon Dec 8, 2014
3efa92e
try just changing it
schacon Dec 8, 2014
2310f4a
Fix typo
argonitinea Dec 9, 2014
73afd56
Merge pull request #202 from harupong/ch06-typo-fix
ben Dec 9, 2014
179a2ce
update shell output to console lexer
argonitinea Dec 9, 2014
081e966
Use always "SHA-1" instead of "SHA"
tacker66 Dec 3, 2014
e63b0fc
Remove dangling full stop
tacker66 Dec 3, 2014
8bcf4b5
Fix typo
MasoudFallahpour Dec 14, 2014
90550f0
Merge pull request #206 from MasoodFallahpoor/ch06-typo-fix
ben Dec 15, 2014
5c7a9a3
Small grammar fix: replaced "it's" with "its"
Dec 16, 2014
2541677
Merge pull request #207 from dtikhonov/master
ben Dec 16, 2014
7a3f17f
Fixed typo: "walk through," not "walk though."
Dec 16, 2014
160c6bc
Merge pull request #208 from dtikhonov/master
jnavila Dec 16, 2014
9d5b4a5
Fix a typo in "contributing" section of chapter 6
MasoudFallahpour Dec 16, 2014
fc3e65e
Merge pull request #209 from MasoodFallahpoor/ch06-typo-fix
jnavila Dec 16, 2014
58fe079
fix branch name to distinguish from directory
tschady Dec 17, 2014
1f207f3
Merge pull request #211 from tschady/tws/fix-branch-name
ben Dec 17, 2014
0ee6dac
Avoid first-person singular pronouns where appropriate
rdwampler Dec 19, 2014
8d6a79d
Merge pull request #213 from rdwampler/avoid-singular-pronouns
ben Dec 19, 2014
0733e5a
Merge pull request #204 from harupong/fix-source-markup
ben Dec 19, 2014
f782ee5
Merge pull request #199 from tacker66/sha-1
ben Dec 19, 2014
6ee0f65
Update kindlegen version to 2.9.4
cdwilson Dec 20, 2014
a32f689
Grammar fix: setup is not a verb.
Dec 22, 2014
ff44911
Merge pull request #218 from dtikhonov/setup
ben Dec 22, 2014
67a1dae
Merge pull request #215 from cdwilson/update-kindlegen-version
ben Dec 22, 2014
6528f31
"gitt" -> "git"
ben Dec 22, 2014
35b6786
Update creative commons mailing address
cdwilson Dec 22, 2014
4216fa7
Change 'an' to 'a'
Mike-Charles Dec 24, 2014
5f8564f
Merge pull request #221 from mike-charles/patch-1
ben Dec 24, 2014
a27c258
Merge pull request #219 from cdwilson/update-cc-mailing-address
ben Dec 24, 2014
e62ec2b
Change 'ask' to 'asks'
Mike-Charles Dec 24, 2014
6b3df95
Merge pull request #223 from mike-charles/tense-fix
ben Dec 24, 2014
fdd18b9
Correcting install package version number
Dec 29, 2014
8c17163
Merge pull request #225 from xJom/patch-1
ben Dec 30, 2014
be6679b
Fixed display of exponents
StevenRoddis Jan 1, 2015
17de6cf
Fix tiny article typo
m-macaskill Jan 1, 2015
a43921f
Merge pull request #229 from m-macaskill/patch-1
ben Jan 1, 2015
7062e91
Merge pull request #228 from StevenRoddis/patch-1
ben Jan 1, 2015
8dc5658
[about-version-control.asc] change "checkout" to "clone"
jon-freed Jan 1, 2015
24f7e82
Merge pull request #230 from jon-freed/master
ben Jan 2, 2015
9f852b8
remove Gitosis
pismute Jan 12, 2015
3d1a1a1
Merge pull request #232 from pismute/remove-gitosis
ben Jan 12, 2015
44f24c8
Additional dependencies for installing documentation (https://github.…
austerus Jan 12, 2015
c2c8c28
Update installing.asc
austerus Jan 13, 2015
9cfd0c8
Fix grammar
michaelgwelch Jan 13, 2015
3db74e2
Merge pull request #234 from michaelgwelch/master
ben Jan 13, 2015
878928a
Replace dash with two hyphens for author date
petk Jan 17, 2015
9139ee0
small grammar fix: it have -> it has
Jan 22, 2015
3be3456
Merge pull request #242 from drm00/small-grammar-fixes
ben Jan 23, 2015
4422044
Merge pull request #233 from austerus/master
ben Jan 24, 2015
eb99af6
Merge pull request #238 from peterkokot/patch-typo-1
ben Jan 27, 2015
a8fcfef
Replace "effect" used as a verb with "affect"
atalakam Jan 29, 2015
9351e15
Working directly
ben Jan 30, 2015
8b9e021
Merge pull request #248 from atalakam/replace-effect-with-affect
ben Jan 30, 2015
5952564
Fix order of `git rm` options
loganhasson Feb 4, 2015
074ccb0
Rename centralized.png in chapter 5
jnavila Feb 4, 2015
d44a707
Merge pull request #250 from progit/centralized_workflow
ben Feb 4, 2015
1098680
Merge pull request #249 from loganhasson/master
ben Feb 4, 2015
3b49bbe
Fix SHA-1 of file.txt v2 to match diagrams
nwidger Feb 8, 2015
4528703
Merge pull request #251 from nwidger/nwidger-patch-1
ben Feb 9, 2015
58c7edc
typo
Feb 19, 2015
e2978f6
Merge pull request #255 from bsima/patch-1
jnavila Feb 19, 2015
338f2f2
Default rake task is 'book:build'.
sadfuzzy Feb 20, 2015
5277c1a
Merge pull request #256 from sadfuzzy/patch-1
ben Feb 21, 2015
3d8a503
Clarify sentence
ben Mar 5, 2015
06ea626
Advanced merging: use -Xignore-space-change
anton-trunov Mar 2, 2015
9b4092e
git merge use: --squash doesn't need --no-commit
anton-trunov Feb 26, 2015
439c253
Merge pull request #263 from anton-trunov/automerge-with-ignore-white…
ben Mar 6, 2015
ba23c43
Fix a typo in Chapter 6, Section 3
Mar 30, 2015
1bfe42f
Merge pull request #272 from samford/fix-typos
ben Mar 31, 2015
07e26ba
Tagging: Add code description with variables.
AnneTheAgile Apr 1, 2015
b835283
Merge pull request #273 from AnneTheAgile/master
ben Apr 1, 2015
bc4ad18
Add missing point in first paragraph
eriol Apr 4, 2015
f61c801
Merge pull request #274 from eriol/patch-1
ben Apr 4, 2015
929b504
sudo add sudo
pipedream Apr 12, 2015
6e77187
Grammar fix: possessive for contraction
robblanco Apr 20, 2015
aa3b63c
Merge pull request #288 from robblanco/typo
ben Apr 20, 2015
5b1e03f
A few it's -> its grammar fixes
robblanco Apr 21, 2015
13469c7
Merge pull request #289 from robblanco/its-typos
ben Apr 22, 2015
f888a88
Merge pull request #282 from pipedream/sudify
ben Apr 22, 2015
6f5c55b
Merge pull request #260 from anton-trunov/fix-redundant-options
ben Apr 22, 2015
452468e
fixed error in the imap section
tessus Apr 22, 2015
540e8ec
Merge pull request #290 from tessus/master
ben Apr 22, 2015
d03efa2
Example doesn't work on Windows 7.
axmbo May 2, 2015
7ddee1c
Merge pull request #295 from axmbo/patch-1
ben May 2, 2015
b4ad33a
Fix #297: A2.3 shows wrong code to create a repository in JGit
rherrmann May 6, 2015
0c78194
Merge pull request #300 from rherrmann/patch-1
ben May 6, 2015
3378e04
Several "remote branch" should be "remote-tracking branch".
danny0838 May 8, 2015
0dfdb23
Fix typo.
danny0838 May 8, 2015
1f73820
export-subst uses git log's custom formatter
jthill May 8, 2015
c9a161a
Merge pull request #303 from jthill/export-subst
ben May 8, 2015
a113612
Merge pull request #302 from danny0838/remote-tracking-branch
ben May 8, 2015
303abb5
Fix non-recursive gitignore files patterns ("/foo")
Thannoy May 20, 2015
1312971
git supports relative submodules URLs
Thannoy May 20, 2015
12f0c8c
Merge pull request #307 from Thannoy/master-review/relative-submodules
ben May 21, 2015
df25588
Various very small typo fixes
Thannoy May 20, 2015
2b56f11
Fix coherency between two consecutive configuration extracts
Thannoy May 20, 2015
505f592
use of gender-neutral pronoun 'they'
SkypLabs May 25, 2015
627686f
fix bad subject
SkypLabs May 25, 2015
5122fe0
Merge pull request #309 from SkypLabs/patch-1
ben May 26, 2015
d1e1579
Merge pull request #310 from SkypLabs/patch-2
ben May 26, 2015
7ac82c5
Merge pull request #306 from Thannoy/master-review/basic-items
ben May 26, 2015
f5c8a1b
file:// repos are often easier to damage by mistake
Thannoy May 20, 2015
24e8bb5
Merge pull request #308 from Thannoy/master-review/file-remote-unsafe
ben May 31, 2015
d8a0433
Should it be three instead of ones?
spacewander Jun 18, 2015
319c83c
Merge pull request #317 from spacewander/patch-1
ben Jun 18, 2015
355804e
Adjust Position of Semicolon
oldsharp Jun 19, 2015
fb4a318
Adjust Line Break
oldsharp Jun 19, 2015
38be175
Merge pull request #319 from oldsharp/adjust-line-break
ben Jun 19, 2015
cc6c7f6
Merge pull request #318 from oldsharp/adjust-semicolon-position
ben Jun 19, 2015
1f48faf
Added missing source highlighting tags
Jun 22, 2015
fcb8b11
Merge pull request #321 from Thanix/patch-1
ben Jun 22, 2015
934d9cf
fixed number error in transfer-protocols example
zwpaper Jun 26, 2015
418db6a
add white space to indicate 0x00
zwpaper Jun 27, 2015
818dc66
Update basic-branching-and-merging.asc
mosdalsvsocld Jun 27, 2015
a1792ab
Merge pull request #324 from mosdalsvsocld/patch-1
ben Jun 28, 2015
b83a3ed
update the "done" problem, sample should be correct
zwpaper Jul 4, 2015
23b7aa2
Merge pull request #323 from zwpaper/example_fix
ben Jul 6, 2015
40f5719
Fix typo ("you patch" > "your patch")
rmzelle Jul 11, 2015
3426101
Merge pull request #327 from rmzelle/patch-1
jnavila Jul 11, 2015
ca0b586
New line should separate sentences
noisy Jul 14, 2015
1d4253b
Merge pull request #329 from noisy/newline_should_separate_sentences
ben Jul 14, 2015
ca2be24
Bring text and example in line in undoing.asc
rmzelle Jul 14, 2015
8906c79
Merge pull request #330 from rmzelle/patch-1
ben Jul 14, 2015
8d62004
double spaces
noisy Jul 18, 2015
0e20606
new lines
noisy Jul 16, 2015
3df7453
Merge pull request #331 from noisy/new-lines
ben Jul 19, 2015
8811cca
fix typo
madkite Jul 21, 2015
a539a49
fix confusing ignore rule: change extension to pdf
madkite Jul 21, 2015
68dcb55
Merge pull request #333 from madkite/master
ben Jul 21, 2015
e8a4885
fix typo in ch. 5, sec. Contributing
akromkhasani Jul 25, 2015
58dda9a
Merge pull request #336 from akr89/typo
ben Jul 25, 2015
bb24434
There is no contradiction, so no "but".
mvdw Jul 27, 2015
627a110
Merge pull request #337 from mvdw/patch-1
ben Aug 1, 2015
277bd27
Highlight some branch names
rmzelle Aug 4, 2015
b19896e
Delete pdf.xsl~
rmzelle Aug 4, 2015
2e4526f
Update recording-changes.asc
nobozo Aug 4, 2015
6d9867f
Update viewing-history.asc
nobozo Aug 4, 2015
e2a4be6
Remove redundant "too" in git-on-a-server.asc
rmzelle Aug 5, 2015
4ced138
Merge pull request #345 from rmzelle/branch-highlights
ben Aug 5, 2015
4e8ad42
Merge pull request #346 from rmzelle/patch-1
ben Aug 5, 2015
db4aa8f
Merge pull request #347 from nobozo/master
ben Aug 5, 2015
bd14f01
Merge pull request #348 from rmzelle/patch-2
ben Aug 5, 2015
c861482
remove proprietary software from examples
madkite Jul 22, 2015
a4623eb
Merge pull request #334 from madkite/master
ben Aug 5, 2015
a4574f7
Add missing double dashes
nobozo Aug 6, 2015
d976e51
Match text to text in image.
nobozo Aug 9, 2015
23511a4
Merge pull request #353 from nobozo/patch-2
ben Aug 9, 2015
5f486e9
Merge pull request #350 from nobozo/patch-1
ben Aug 11, 2015
cee0211
Add a Missing Apostrophe
oldsharp Aug 12, 2015
686d955
Merge pull request #358 from oldsharp/pull/add-missing-apostrophe
ben Aug 12, 2015
98aed4e
Fix Monospace Issue in 10-git-internals refspec
oldsharp Aug 13, 2015
0cc7c55
Fix Monospace Issue in advanced-merging
oldsharp Aug 13, 2015
6f45c8c
Merge pull request #359 from oldsharp/pull/monospace/10-git-internals…
ben Aug 13, 2015
6390e50
Merge pull request #360 from oldsharp/pull/monospace/07-git-tools/adv…
ben Aug 13, 2015
553c62a
fix a typo: .htaccess instead of .htpasswd
Aug 16, 2015
a2b41dd
Correct git filter-branch command line argument on PowerShell
satob Aug 16, 2015
1105837
Merge pull request #363 from satob/correct-powershell-git-filter-branch
ben Aug 17, 2015
8a15027
Merge pull request #362 from iprok/htpasswd
ben Aug 17, 2015
d9a074b
Use "Git for Windows" instead of "msysgit"
YueLinHo Aug 18, 2015
2721cbe
Merge pull request #366 from YueLinHo/UseGfW
ben Aug 20, 2015
5e8203d
Edit paragraph in 2-contributing.asc (06-github)
rmzelle Aug 20, 2015
816f908
Merge pull request #370 from rmzelle/patch-1
ben Aug 20, 2015
f9f87a5
Further explain the real "/etc/gitconfig" file path when using Git fo…
YueLinHo Aug 20, 2015
3e8a93e
Merge pull request #373 from YueLinHo/GfW2_sys_cfg
ben Aug 20, 2015
e5b53d1
Fix tyop
dscho Aug 21, 2015
2c5b3c4
Fix typo introduced in 3e8a93eb
ben Aug 21, 2015
9c6b460
Merge pull request #375 from dscho/tyop
ben Aug 21, 2015
3ad65c3
Clarify how updating pull requests works
rmzelle Aug 22, 2015
931510d
Standardized spelling, capitalization and punctuation of 'email'
sean-head Aug 23, 2015
f13bbdf
Merge pull request #377 from sean-head/fixEmail
ben Aug 23, 2015
006304b
Merge pull request #376 from rmzelle/patch-1
ben Aug 23, 2015
d97c3e7
Add punctuation to the init paragraph
crd Aug 24, 2015
84fe76a
Updated git status -s paragraph
crd Aug 24, 2015
6315ef5
Updated a few other console lead-ins
crd Aug 24, 2015
887dc24
Fix capitalization of JavaScript
rmzelle Aug 24, 2015
69a4743
Merge pull request #380 from rmzelle/fix-javascript
ben Aug 25, 2015
94222b6
Merge pull request #379 from crd/crd-punctuation
ben Aug 25, 2015
34f978b
plain-text standardized
devwebcl Aug 27, 2015
1a7fa7c
Updated installing.asc to make [source,console] blocks consistent
crd Aug 28, 2015
c151d0d
Add missing shell prompt to console block
crd Aug 29, 2015
facc1ab
Added missing shell prompts to console blocks in git-daemon.asc
crd Aug 29, 2015
2a58343
Merge pull request #386 from devwebcl/plaintxt
ben Aug 29, 2015
5498c0f
Merge pull request #390 from crd/fix-console-coloring-in-01-introduction
ben Aug 29, 2015
9274e18
Merge pull request #391 from crd/fix-console-blocks-in-02-git-basics
ben Aug 29, 2015
9f1ebd9
Merge pull request #392 from crd/fix-console-blocks-in-04-git-server
ben Aug 29, 2015
a33d55f
Merge pull request #1 from progit/master
crd Aug 29, 2015
3f8b75b
Fix console coloring in maintaining.asc
crd Aug 29, 2015
3dc58df
Make source start and end blocks consistent with rest of book
crd Aug 29, 2015
24157ae
Add explicit type to source blocks in 2-contributing.asc
crd Aug 29, 2015
46b404a
Add [source,ini] to inline .git/config snippets
crd Aug 29, 2015
e79ec25
Merge pull request #393 from crd/fix-console-blocks-in-05-distributed…
ben Aug 30, 2015
6537eb9
Small typographic change
JeroenOortwijn Aug 30, 2015
2234b6e
Merge pull request #396 from xifedI/patch-1
ben Aug 30, 2015
2906087
Add ini parameter to source block for a config file
crd Aug 31, 2015
a11d5cf
Properly mark ruby source blocks as such and simplify how they're pre…
crd Aug 31, 2015
8e96067
Eliminate unnecessary whitespace
crd Aug 31, 2015
277d3e5
Remove unnecessary whitespace from rewriting-history.asc
crd Aug 31, 2015
3e54723
Remove unnecessary whitespace from stashing-cleaning.asc
crd Aug 31, 2015
f11c3b6
Reference and highlight a config file appropriately in submodules.asc
crd Aug 31, 2015
4f4378e
Tag source blocks for .gitattributes files as ini
crd Sep 1, 2015
d67453c
Add missing shell prompt and correctly mark block as console
crd Sep 1, 2015
2a8a44b
Fix typo preventing syntax highlighting for source block
crd Sep 1, 2015
de14991
Fix console blocks in config.asc
crd Sep 1, 2015
375a6a7
Fix console blocks in policy.asc
crd Sep 1, 2015
7cdfef9
Remove unnecessary whitespace from client-hg.asc
crd Sep 1, 2015
2a541c3
Remove unnecessary whitespace from client-tfs.asc
crd Sep 1, 2015
2800ca9
Remove unnecessary whitespace from import-custom.asc and add missing …
crd Sep 1, 2015
cddbcd2
Add missing colons to import-svn.asc
crd Sep 1, 2015
8cbe92c
Add ini classification to source block in refspec.asc
crd Sep 1, 2015
a41f2b2
Merge pull request #403 from crd/fix-console-blocks-in-10-git-internals
ben Sep 2, 2015
e65f804
Merge pull request #397 from crd/fix-console-blocks-in-06-github
ben Sep 2, 2015
27203b6
Merge pull request #398 from crd/fix-console-blocks-in-07-git-tools
ben Sep 2, 2015
f27d0ce
Merge pull request #400 from crd/fix-console-blocks-in-09-git-and-oth…
ben Sep 2, 2015
265ce1c
Updated attributes.asc source block to use diff highlighting
crd Sep 3, 2015
55c5915
Updated attributes.asc source block to remove shell prompt
crd Sep 3, 2015
3b01138
remove unneeded double whitespaces
lazarljubenovic Sep 3, 2015
0fbebb2
Merge pull request #405 from Lazar95/whitespace-errors
ben Sep 3, 2015
e539d0a
remove a colon before a link
lazarljubenovic Sep 4, 2015
093b1ac
Bold and italic follow Asciidoc semantics
lazarljubenovic Sep 4, 2015
bb21ef0
Merge pull request #407 from Lazar95/colon-before-link-fix
ben Sep 4, 2015
9cc92d6
Merge pull request #399 from crd/fix-console-blocks-in-08-customizing…
ben Sep 4, 2015
d73ca0b
Merge pull request #408 from Lazar95/bold-italic-fix
ben Sep 8, 2015
61530b7
import-hg.asc: change order of lines
JeroenOortwijn Sep 11, 2015
db7b65d
Merge pull request #412 from xifedI/patch-1
ben Sep 11, 2015
8b39a94
Update the git-receive-pack response explanation
JeroenOortwijn Sep 12, 2015
e2d5bbc
Merge pull request #413 from xifedI/patch-1
ben Sep 13, 2015
0318cf5
Fix example output of "git clone"
moy Sep 15, 2015
4dd5ac1
Merge pull request #414 from moy/clone-output
ben Sep 15, 2015
b4f240d
Update hooks.asc
ajoslin103 Sep 15, 2015
3f18314
Merge pull request #416 from ajoslin103/patch-1
ben Sep 16, 2015
0b61137
Fix small issues in advanced-merging
hedrok Sep 25, 2015
8852b75
Merge pull request #423 from hedrok/fix-advanced-merging-issues
ben Sep 25, 2015
bb9e927
Run pngquant + optipng
vmarkovtsev Sep 27, 2015
d6ba858
Merge pull request #424 from vmarkovtsev/master
ben Sep 27, 2015
7b0d0dc
Updated installing.asc for Centos/Fedora
i-give-up Oct 1, 2015
98c409c
Merge pull request #427 from i-give-up/patch-1
ben Oct 1, 2015
510455b
[core.editor] improve first time setup to include Notepad++
un1versal Oct 5, 2015
53959b9
Give more details on Windows system-level config file.
tacker66 Oct 4, 2015
54b82a1
Merge pull request #428 from tacker66/git-for-windows
ben Oct 6, 2015
26bbf03
Fix typos in Chapter 6
kdelwat Oct 8, 2015
0e4f169
Merge pull request #430 from kdelwat/fix-typos-chapter-6
ben Oct 8, 2015
9ced5b7
Merge pull request #382 from un1versal/Read-You-Like-a-Book
ben Oct 10, 2015
0e74969
Change htdigest to htpasswd
vitalyq Oct 14, 2015
bf8d8a0
Set directory permissions for Apache
vitalyq Oct 14, 2015
4d65a9e
Solve authentication problem
vitalyq Oct 14, 2015
17c6a71
Merge pull request #432 from vitalyq/smart-http
ben Oct 15, 2015
e626fb1
change 'winstore' credential option to 'wincred'
mmikeww Oct 18, 2015
5cb9bdd
Merge pull request #435 from mmikeww/patch-1
ben Oct 19, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ progit.pdfmarks
progit.epub
progit-kf8.epub
progit.mobi
images/
/images/
37 changes: 37 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Contributing to Pro Git (2nd Edition)


## Licensing

By opening a pull request to this repository, you agree to provide your work under the [project license](LICENSE.asc).
Also, you agree to grant such license of your work as is required for the purposes of future print editions to @ben and @schacon.
Should your changes appear in a printed edition, you'll be included in the [contributors list](book/contributors.asc).

## Small Corrections

Errata and basic clarifications will be accepted if we agree that they improve the content. You can also open an issue so we can figure out how or if it needs to be addressed.

If you've never done this before, the [flow guide](https://guides.github.com/introduction/flow/) might be useful.

## Large Rewrites

Open an issue for discussion before you start. These changes tend to be very subjective, often only clarifying things for some small percentage of people and it's rarely worth the time to accept them. Professional copy editors have already reviewed this content multiple times so while you may have somewhat better taste and grammar than we do it's unlikely that your prose is going to be *so* much better that it's worth changing vast swaths of text.

## Figures

The images in this book were generated using [Sketch 3](http://bohemiancoding.com/sketch/), with the [included sketchbook file](diagram-source/progit.sketch).

To add a figure:

1. Add a page to the sketchbook. Try to use the included symbols wherever possible.
1. Add a "slice" to your page. Give it a name that matches the destination PNG filename, relative from the root of the source directory.
1. Make sure your slice is set to export at "800w".


## Translations

Translations to other languages are highly encouraged but handled a little differently than the first edition. We now keep each translation in a separate repository and automatically build the output files through Atlas. This was something that was really difficult in the last edition.

Since each translation is a different repository, we can also have different maintainers for each project. The Pro Git team simply pulls them in and builds them for the translation teams. To get automatic builds, translations repositories will have to be under the [`progit` organization on GitHub](https://github.com/progit).

You can find out information on all the current translations and information on how to start your own at http://progit.org/translations.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GEM
rubyzip (>= 1.1.1)
hashery (2.1.1)
json (1.8.1)
kindlegen (2.9.3)
kindlegen (2.9.4)
mini_portile (0.6.0)
nokogiri (1.6.3.1)
mini_portile (= 0.6.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.asc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
39 changes: 11 additions & 28 deletions README.asc
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,24 @@ You can find this book online at: http://git-scm.com/book

Like the first edition, the second edition of Pro Git is open source under a Creative Commons license.

A couple of things have changed since open sourcing the first edition. For one, we've moved from Markdown to the amazing Asciidoc format for the text of the book. We've also moved to using O'Reilly's https://atlas.oreilly.com[Atlas platform] for generating continuous builds of the book so all major formats are always available in every language.
A couple of things have changed since open sourcing the first edition.
For one, we've moved from Markdown to the amazing Asciidoc format for the text of the book.
We've also moved to using O'Reilly's https://atlas.oreilly.com[Atlas platform] for generating continuous builds of the book so all major formats are always available in every language.

We've also moved to keeping the translations in seperate repositories rather than subdirectories of the English repository. See the Translations section for more information.

== Contributing

To contribute errata or new content to this repository, you will need to open up a Pull Request on GitHub. It is generally a good idea before doing anything major to open an issue and make sure your work will get accepted.

Errata and basic clarifications will be accepted if we agree that they improve the content. You can also open an issue so we can figure out how or if it needs to be addressed.

Please refrain from making sweeping copy edit changes as they tend to not get accepted and we don't want you wasting your time. These changes tend to be very subjective, often only clarifying things for some small percentage of people and it's rarely worth the time to accept them. Professional copy editors have already reviewed this content multiple times so while you may have somewhat better taste and grammar than we do it's unlikely that your prose is going to be *so* much better that it's worth changing vast swaths of text.
We've also moved to keeping the translations in separate repositories rather than subdirectories of the English repository.
See link:CONTRIBUTING.md[the Contributing document] for more information.

== How To Generate the Book

There are two ways to generate e-book content from this source code.

The easiest way is simply to let us do it. A robot is standing by to look for new work on the main branch and automatically build it for everyone.
The easiest way is simply to let us do it.
A robot is standing by to look for new work on the main branch and automatically build it for everyone.

You can find the current builds on http://git-scm.com/book[] and more information about the builds available at https://progit.org[].

The other way to generate e-book files is to do so manually with Asciidoctor. If you run the following you _may_ actually get HTML, Epub, Mobi and PDF output files:
The other way to generate e-book files is to do so manually with Asciidoctor.
If you run the following you _may_ actually get HTML, Epub, Mobi and PDF output files:

----
$ bundle install
Expand All @@ -43,20 +40,6 @@ Converting to PDF...

This uses the `asciidoctor`, `asciidoctor-pdf` and `asciidoctor-epub` projects.

== Translations

Translations to other languages are highly encouraged but handled a little differently than the first edition. We now keep each translation in a seperate repository and automatically build the output files through Atlas. This was something that was really difficult in the last edition.

Since each translation is a different repository, we can also have different maintainers for each project. The Pro Git team simply pulls them in and builds them for the translation teams. To get automatic builds, translations repositories will have to be under the https://github.com/progit[progit organization on GitHub].

You can find out information on all the current translations and information on how to start your own at: http://progit.org/translations[].

== Figures

The images in this book were generated using http://bohemiancoding.com/sketch/[Sketch 3], with the link:diagram-source/progit.sketch[included sketchbook file].

To add a figure:
== Contributing

. Add a page to the sketchbook. Try to use the included symbols wherever possible.
. Add a ``slice'' to your page. Give it a name that matches the destination PNG filename, relative from the root of the source directory.
. Make sure your slice is set to export at 3x size.
If you'd like to help out by making a change or contributing a translation, take a look at the link:CONTRIBUTING.md[contributor's guide].
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ namespace :book do
puts " -- PDF output at progit.pdf"
end
end

task :default => "book:build"
6 changes: 4 additions & 2 deletions TRANSLATION_NOTES.asc
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
== Translation Notes

After forking this repository to translate the work, this file is where the notes for coordinating the translation work would go. Things like standardizing on words and expressions so that the work is consistent or notes on how the contributing process is to be handled.
After forking this repository to translate the work, this file is where the notes for coordinating the translation work would go.
Things like standardizing on words and expressions so that the work is consistent or notes on how the contributing process is to be handled.

As a translation maintainer, also feel free to modify or completely rewrite the README file to contain instructions specific to your translation.

=== Translation Status

As the work is translated, please update the `status.json` file to indicate the rough percentage complete each file is. This will be shown on various pages to let people know how much work is left to be done.
As the work is translated, please update the `status.json` file to indicate the rough percentage complete each file is.
This will be shown on various pages to let people know how much work is left to be done.
2 changes: 1 addition & 1 deletion atlas.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"epub": {
"index": true,
"toc": true,
"epubcheck": false,
"epubcheck": true,
"embedded_fonts": [
"fonts/DejaVuSerif.otf",
"fonts/DejaVuSans-Bold.otf",
Expand Down
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/about-version-control.asc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Local VCS systems suffer from this same problem – whenever you have the entire
This is where Distributed Version Control Systems (DVCSs) step in.
In a DVCS (such as Git, Mercurial, Bazaar or Darcs), clients don't just check out the latest snapshot of the files: they fully mirror the repository.
Thus if any server dies, and these systems were collaborating via it, any of the client repositories can be copied back up to the server to restore it.
Every checkout is really a full backup of all the data.
Every clone is really a full backup of all the data.

.Distributed version control.
image::images/distributed.png[Distributed version control diagram]
Expand Down
4 changes: 2 additions & 2 deletions book/01-introduction/sections/basics.asc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Staged means that you have marked a modified file in its current version to go i
This leads us to the three main sections of a Git project: the Git directory, the working directory, and the staging area.

.Working directory, staging area, and Git directory.
image::images/areas.png[Working directory, staging area, and Git directory.]
image::images/areas.png["Working directory, staging area, and Git directory."]

The Git directory is where Git stores the metadata and object database for your project.
This is the most important part of Git, and it is what is copied when you clone a repository from another computer.
Expand All @@ -103,6 +103,6 @@ The basic Git workflow goes something like this:
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.

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 and 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.
2 changes: 1 addition & 1 deletion book/01-introduction/sections/command-line.asc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ There are a lot of different ways to use Git.
There are the original command line tools, and there are many graphical user interfaces of varying capabilities.
For this book, we will be using Git on the command line.
For one, the command line is the only place you can run *all* Git commands – most of the GUIs only implement some subset of Git functionality for simplicity.
If you know how to run the command line version, you can probably also figure out how to run the GUI version, while the opposite is not neccesarily true.
If you know how to run the command line version, you can probably also figure out how to run the GUI version, while the opposite is not necessarily true.
Also, while your choice of graphical client is a matter of personal taste, _all_ users will have the command-line tools installed and available.

So we will expect you to know how to open Terminal in Mac or Command Prompt or Powershell in Windows.
Expand Down
33 changes: 28 additions & 5 deletions book/01-introduction/sections/first-time-setup.asc
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ 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.
If you are using Git for Windows 2.x or later, there is also a system-level config file at
`C:\Documents and Settings\All Users\Application Data\Git\config` on Windows XP, and in `C:\ProgramData\Git\config` on Windows Vista and newer.
This config file can only be changed by `git config -f <file>` as an admin.

==== 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:

[source,console]
Expand All @@ -31,25 +34,45 @@ $ git config --global user.email [email protected]
----

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.

Many of the GUI tools will help you do this when you first run them.

==== Your Editor

Now that your identity is set up, you can configure the default text editor that will be used when Git needs you to type in a message.
If not configured, Git uses your system's default editor, which is generally Vim.
If not configured, Git uses your system's default editor, which is system dependant.

If you want to use a different text editor, such as Emacs, you can do the following:

[source,console]
----
$ git config --global core.editor emacs
----

While on a Windows system, if you want to use a different text editor, such as Notepad++, you can do the following:

On a x86 system
[source,console]
----
$ git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession"
----
On a x64 system
[source,console]
----
$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -nosession"
----

[NOTE]
====
Vim, Emacs and Notepad++ are popular text editors often used by developers on Unix based systems like Linux and OS X or a Windows system.
If you are not familiar with either of these editors, you may need to search for specific instructions for how to set up your favorite editor with Git.
====

[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.
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.
You may find, if you don't setup an editor like this, you will likely get into a really confusing state when they are launched.
Such example on a Windows system may include a prematurely terminated Git operation during a Git initiated edit.
====

==== Checking Your Settings
Expand Down
Loading