Have you ever been coding on a project that was working, made a change the broke it and weren't able to get back to a working state?
Have you wondered why you made a particular change to your code aboaut a year ago
Is all your analysis and the code only on your laptop which might blow up / get stolen / be left behind somewhere? If you did back it up how long ago was that, could you recreate all the work since then from memory?
In years gone by open source software was distributed as compressed tar archives. Nowadays it is common to point people to a git repository.
A repository enables us to collaborate with others.
Many tools now integrate with version controol tools, e.g. IDEs, Code Review tools, Continuous Integration / Continuous Deployment
You can use a service like Zenodo to register DOIs (citable references) for particular versions of your software
(c)Jorge Cham http://phdcomics.com/
%%bash2
git
%%bash2
git --version
%%bash2
git clone https://github.com/githubtraining/example-basic.git