4 ms·
That's awesome. I sometimes edit my notes in IntelliJ or in GitHub web interface. At one point I created an autocommit script that commits every second which y
by samsquire 4y ago
That's awesome. I sometimes edit my notes in IntelliJ or in GitHub web interface.
At one point I created an autocommit script that commits every second which you can change the commit message by setting it in a file called "current-task"
Could combine this with automatic synchronization with pulling too.
#!/bin/bash
while true; do
sleep 1
(cd app ; git status -z;
git add . && git commit -m "autocommit $(cat ../current-task)" ; git push -f app);
done > autocommit.log 2>&1
- araekiel 4y agoCool! Just took a screenshot, might need this later. Thanks! Will add a reference to this comment, if I end up using it. :)
- gunapologist99 4y agoConsider using inotifywait to commit only on changes, rather than just committing every minute.
- samsquire 4y agoThat's the higher quality solution. Git commits without any changes added are noops, that's the behaviour I rely on.