Getting Started with Git and GitHub
When you are writing software code and/or scripts, it is helpful to keep a history all your changes. Then if you make a mistake or aren't happy with the direction your code is heading, you can go back to a previous version. One efficient way to do this is via a version-control system
Using simple commands, you can track all changes that you make. These changes will be stored in a hidden repository on your computer. But it is also very useful to store your repository in a remote location like GitHub
For simple needs (updating and retrieving code), Git is easy to use and can be automated. But it also provides extensive advanced options for those who want to use them. Here