Open up your terminal, enter your working directory, and commit your code to the cloud using these commands.
To upload your code to your Raspberry Pi, always commit your code to your repository and then pull it to your Raspberry Pi. Open up your terminal, enter your working directory, and commit your code to the cloud using these commands.