Reputation: 375
For starters, I have looked into both How to backup a local Git repository? && Fully backup a git repo? but my issue lies with backing up things that I have not yet committed to the local repo.
Specifically, I use carbonite (a backup cloud service) and anytime a file in my selected directories changes, it is backed up to the cloud service. This is handy for me with subversion, because if something was to happen that corrupted my local computer, I have all of my saved code backed up.
Now that I have switched to using Git and all of my files change every time I switch branches, Carbonite recognizes it as one directory, and changes all of the backup files every time I switch.
My solution to the carbonite issue is to not backup the Git repo, but if my machine fails, then I lose my uncommitted code. Anyone have an idea on what I should do here to backup my uncommitted code?
Upvotes: 9
Views: 3852
Reputation: 119
Not sure would this help your case but created a tool to backup uncommitted files to a directory.
Also, can be used with a schedule task service.
Git-Uncommited-Files-Backup-Tool-Windows
Upvotes: 1