-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Short Answer: For fun
Long Answer: There are other solutions that work way better than this and I have not the intention to compete with them. My main purpose is to practice my knowledge with the following subjects:
-
shell script (which I get along pretty well)
-
git (which I'm trying to go beyond the mostly basic daily use)
SA: It creates a git branch for every day and then automatically commits changes
LA: First, you have to manually add files, and then they will be automatically versioned. The automation is made using cron. When called, the script:
-
checks if there is a repository
- if not, creates it
-
checks if there is a branch matching the current day
- if not, creates it
-
checks changes on added or if there are removed files
-
if a file is removed from disk, then delete files from git repository
-
if a file is changed, commit their changes
-
SA: this feature wasn't yet implemented
LA: I'm still thinking about which would be a better idea: a web interface or a graphical/cli one. There's another issue too: I want this to be container-friendly, so this decision must match this dependency.