

Launch the Raspberry Pi terminal and run the following commands: sudo apt update sudo apt full-upgrade sudo apt install code -y The great news is that VS Code is now available as part of the Raspberry Pi OS apt packages. Thonny comes with Python 3.7 built in, so nothing needs to be installed.Īs a personal preference my favorite IDE is VS CODE, for some projects like Apps in Flask, Bots and Tensorflow, I feel more comfortable working in the VS interface. Thonny IDE (Integrated Development Environment) bundled with the latest version of Raspberry Pi OS. To know more about Git in Raspberry I recommend you go to Getting started with Git. If you are working on a different branch you would write: git push origin The message can be anything really, but it is better to be fairly short but descriptive of what has changed.Įvery time you make changes to your project and want to push them to GitHub, you can write: git push origin master This commits all the changes you have made to the directory in the Git repository and adds a message saying what you did. The easiest way to commit is by typing: git commit -am “add README.md” This means that even though Git knows about the file, it doesn’t have any of its contents stored yet. The answer above tells you that the README.md file has not yet been committed. You can view the status of your repository at any time by typing the following: git status Now Git knows that it needs to keep track of all the changes that happen to the README.md file. However, sometimes it is easier to add everything to the repository, rather than adding individual files. To do this, simply type: git add README.md You have to tell Git that you want to add the README.md file to the repository. That README.md file has not yet been placed in the bag. So now you have the magic backpack part, but you haven’t added anything to it yet. You can take a look inside by typing: ls -a. git directory is the skeleton of the repository. Now you should see something like this in your terminal window. However, you can use the following command to see all hidden files and directories. If you retype ls, nothing will appear to have changed.
