# Homework 1, due 08.00, 25/8-2014¶

## Version control and Git¶

2. Create a private Git repository with a unique name (don’t use Math471.)
3. Set up Git on your machine if you haven’t already. There are good instructions on the official git-scm.com. It should also be possible to use linux.unm.edu where Git should be installed.
4. Follow the instructions for command line, “I’m starting from scratch”.
• Set up your local directory.
• mkdir /path/to/your/project
• cd /path/to/your/project
• git init
• Create your first file, commit, and push
• echo "Jane Doe" >> contributors.txt
• git commit -m 'Initial commit with contributors'
• If you are working on linux.unm.edu then execute export GIT_SSL_NO_VERIFY=true before the next step.
• git push -u origin master
5. Now we will clone the repository you just created. Go to the root of your home directory (i.e. type cd) and create a directory where you keep all the repositories, e.g. mkdir repos and change into that directory (cd repos.)
6. Next point your browser to your repository on bitbucket.org. To the left there is a actions menu, click on clone and copy the text (something like git clone https://username@bitbucket.org/username/your_repo.git) to your terminal window and hit enter. You should now have a directory with your repository that you can go into.
7. In the directory your_repo create a file called README.rst. The extension .rst indicates that this file is written in reStructuredText. To hand in the homework in this class you will send me a SHA-1 checksum that identifies the version of your repository that you want me to grade (more about this soon). Upon grading I will first read the readme file where you will put instructions where I can find the report and code for each homework. For example it could contain something like:
  1 2 3 4 5 6 7 8 9 10 +++++++++++++++++++++++++++++++++ README file for Jane Doe Math 471 +++++++++++++++++++++++++++++++++ 1. Homework 1: - The report is in Homework1/Report and is called homework1.pdf. - The code for this homework is located in Homework1/Code and is documented in the appendix of the report. 
  1 2 3 4 5 6 7 8 9 10 11  commit 84e7a3e57bf0e10dbb9a998d55b5976e55514ad3 Author: Daniel Appelo Date: Tue Aug 5 09:47:27 2014 -0600 Added a README commit 78db2b57948e1778e62cd9118e78ee83f6f0af82 Author: Daniel Appelo Date: Mon Aug 4 17:39:28 2014 -0600 Initial commit with contributors