Skip to content

Commit 6a6582b

Browse files
committed
Add "Why?" page
1 parent 63023dc commit 6a6582b

2 files changed

Lines changed: 42 additions & 2 deletions

File tree

index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ hard to get started. I hope these pages help. (More blather below.)
1111
There are many resources for git and github; my aim is to provide the
1212
minimal guide to get started.
1313

14-
- Why?
14+
- [Why?](pages/why.html)
1515
- [Your first time](pages/first_time.html): get account; set up ssh
1616
- Typical use: add, commit, push
1717
- Start new repository: from scratch; using current project
1818
- [Contribute to someone's repository](pages/fork.html)
1919
- I want to fix a bug in someone's project
2020
- A package I'm using has a bug but I can't figure out how to fix it
2121
- Oops; that last commit message was wrong
22+
- Merge conflicts
2223
- Exploring the code and its history
2324
- Resources
2425

@@ -38,7 +39,7 @@ may collaborate more easily. But for
3839
statisticians with no history of use of version control, it can be
3940
hard to get started. This is a tutorial of sorts, to help.
4041

41-
[Pjotr Prins](http://www.thebird.nl) got me to move from SVN to
42+
[Pjotr Prins](http://www.thebird.nl) got me to move from subversion to
4243
git, but don't hold him responsible for any
4344
errors in my understanding.
4445

pages/why.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: page
3+
title: Why git and github?
4+
---
5+
6+
### Why use [git](http://git-scm.com)?
7+
8+
_Version control is the only reasonable way to keep track of changes_
9+
in code, manuscripts, presentations, and data analysis projects. I
10+
used to make numbered tar.gz files for a project. But exploring the
11+
differences is difficult, to say the least. And if you use git
12+
properly, you'll have annotated each small change.
13+
14+
_Merging collaborators' changes made easy._ Have you ever had to
15+
deal with a collaborator sending you modifications distributed across
16+
many files, or had to deal with two people having made changes to the same
17+
file at the same time? Painful. `git merge` is the answer.
18+
19+
20+
### Why use [github](http://github.com)?
21+
22+
_Github is like facebook for programmers._ Everyone's on there. You
23+
can look at what they're working on and easily peruse their
24+
code and make suggestions or changes.
25+
26+
_It's really open source._ “Open source” is not so open if
27+
you can't easily study it. With github, all of the code easily
28+
inspected, as is its entire history.
29+
30+
_Github lowers the barriers to collaboration._ It's dead easy to
31+
offer suggested changes to others' code through github. I was able to
32+
[fix a mistake](https://github.com/D-Programming-Language/phobos/commit/903a5e821a54a7dc5a2695e47db3abe2517742fe)
33+
in the
34+
[phobos library](https://github.com/D-Programming-Language/phobos) for
35+
the [D programming language](http://dlang.org), because it's hosted on
36+
github. I
37+
[fixed some problems](https://github.com/Caged/d3-tip/commit/c0117472438db94e0cf3febd45bf768ddc1bea5c)
38+
in some very useful code developed by someone I don't know, because
39+
it's hosted on github.

0 commit comments

Comments
 (0)