Commitments
When writing code, especially in the beginning, it is very very very important to backup all of your work.
The best way I’ve learned to go about doing this is by using Github.
First, you must create a Github account here: www.github.com
After you’ve created your account, create a new repository


Name the Repository the same as the folder that your code is in, and create it as a public repo.
Go to your terminal app and navigate to the local folder on your computer.

and run the command git init
Next run the command git add --all
Then run the command git commit -m "insert whatever you want here" this name should be an easy reference for you to see where you were in your coding.
Finally, copy at paste the code from Github to push to an existing repo

Now whenever you make changes to your code, save and run the command in terminal git status to see what files have been modified.
Then run the command git add --all, git commit -m "blah blah", and finally git push origin master
You will have all of your pushes saved to Github and if something goes wrong, you want to see how the code used to be, you want to revert, etc. all that you need to do is click on your commits.

