My desktop quickly becomes unwieldy, so to tame the clutter, I have been using git to take regular backup of the desktop, here’s the batch script that I have configured with schtasks on my windows system.
Posting it here with explanation so its useful for others.
@echo off cd C:\Users\sukhbinder\Desktop git diff --stat > test git status >> test git add -A git commit -F test
git diff –stat Gives a compact statistics on the git
git status shows the current state for the working git folder
git add -A adds all files in the folder. By all I mean all tracked and untracked files in the folder
git commit -F
test commits the added files using the contents of
test file as the commit message