A
A
Andrew2016-09-30 18:07:12
git
Andrew, 2016-09-30 18:07:12

How to permanently autocommit a directory in Windows?

Windows. There is a directory in which files are added, changed and deleted. Is it possible to do:
1) Automatic commit on any change of files in the directory?
2) Scheduled automatic commit?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2016-09-30
@ntzch

Can. File changes can be caught through PowerShell. According to the schedule - through the scheduler. Make a mini script with commands and execute it.

Z
Zakharov Alexander, 2016-09-30
@AlexZaharow

In principle, you can put a watcher. If you have C# experience, then see FileSystemWatcher . There is even an example on this page. Pretty good, by the way.
PS
Just make sure these watchers won't wait until you commit. A cart and a small cart can pile up events. But just on the go, some topics are vague there. Gotta practice.
PPS
Just in case: https://diff2html.xyz/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question