... | ... | @@ -133,6 +133,16 @@ git add README.md |
|
|
```
|
|
|
(NB: You must be _in_ your local repository when using the git commands)
|
|
|
|
|
|
What type of files do we typically add. If we take a LaTeX document, for example.
|
|
|
We only want the source files required to _reproduce_ and compile the document, on
|
|
|
the repository. Not the PDF output. Typically that will only be the `tex` source
|
|
|
file, and the `bib` BibTeX bibliography file. We do want you to add all the graphics
|
|
|
files, irrespective of their type, because otherwise we cannot reproduce the
|
|
|
document and compile it on our side. All the other, auxiliary files, like `bbl`,
|
|
|
`toc`, `.DS_STORE` (on Mac), and all the project files created by Eclipse, R, or
|
|
|
IDEs like IntelliJ, please ignore them. We don't want the output files because
|
|
|
we want others to be able to _reproduce the output_ on their side.
|
|
|
|
|
|
4. After you've added all the files you want to include in the current
|
|
|
_snapshot_, you commit it. But unlike `subversion` where a commit sends it to
|
|
|
the remote repository, in git it only gets committed locally. Also, we add a
|
... | ... | |