Setting up a single-user Git repository on private cloud storage is not difficult and incurs no cost to you.
I wanted to create a source control repository and Git seemed like the best choice nowadays. I do not want to keep my data on public repositories yet I want data to be stored on the cloud for backup. You do not need to setup a web server unless you want multi-user support.
Create Git bare (I will describe reasons for using bare repo below) repository on Google Drive. You could use Dropbox or other cloud storage that you favour.
When compiling project, lots of file get created/updated/deleted and this causes frequent syncing to cloud. Furthermore, after using for a while my Git repository became corrupted. Therefore, I strongly discourage using cloud storage synchonised folder as working folder.
Instead, create a Git bare repository on Google Drive. A bare repository disallows you from working on it but you could clone/push from/to it.
Git Create repository here, tick
Make it Bare.
C:\Users\<user>\Documents\Git) folder. Navigate to Documents folder.
Git clone. The source path is your Git folder on Google Drive/Dropbox. The destination path is your Documents\Git path.
TortoiseGit > Add. Note that you need to commit your changes before they actually get into your working folder’s Git repository.
Git Commit -> "master".
Right click on working folder then choose
Tortoise Git -> Push. The remote folder should be pointing to the
Your cloud storage should now have the changes.