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