Git

Git is a version control tool that can be helpful while developing applications. It also enables sharing code samples with others. For example, this book's latest code samples are all checked into https://github.com/sai-y/pywpi.git. Since git enables version control, it is possible to save copies of the code at different stages of the project. It is also possible to revert to a known working version if there are problems in the code.

While writing this book, we wrote our code using text editors, such as Notepad++ and Sublime Text editor. and saved them to our repositories on github. On the Raspberry Pi side, we made a copy of the repository from github and tested our code. Git also enables creating branches, which is a cloned image of the code repository. Git branches enable working on a new feature or fix an existing problem without breaking the working version of the code. Once the feature has been implemented or a problem is fixed, we can merge the changes with the main branch of the repository. We recommend finishing this tutorial to understand the importance of Git, so refer to https://guides.github.com/activities/hello-world/.