John Blischak Do not define "repository" in share your code section. The word is already used in the previous section with git init. Cite Box 1 for the full definition.  about 9 years ago

Commit id: 767e1af76fb0b2ddd847b1babb6534492e5fd379

deletions | additions      

       

\subsection{Share your code}  Once you have your files saved in  a directory of version controlled files, referred to as a Git  repository, you can share it with your collaborators and the wider scientific community by putting your code online. This also has the added benefit of creating a backup of your work and provides a mechanism for syncing your files across multiple computers. Sharing a repository is made easier if you use one of the many online services that host Git repositories (Table 1), e.g. GitHub.  A repository contains the version of the files from the last commit as well as all the versions from previous snapshots.  However, any files that have not been tracked with at least one commit are not included in the Git repository, even if they are located within the same directory on your local computer (see Box 3 for advice on the types of files that should not be versioned with Git).         

\end{lstlisting}  To start versioning your code with Git, navigate to your newly created or existing project directory (in this case, \verb|~/thesis|).  Start tracking your code by running the command \verb|git init|, which initializes a new Git repository (Box 1)  in the current folder. \begin{lstlisting}  $ cd ~/thesis