Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Getting git to help my memory

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:51:32

Evan Driscoll [off-list ref] writes:
I have a somewhat unusual question. I often forget to push after committing,
and a few times this has come back to bite me. (One time I didn't even really
realize for a couple months because I was working on other stuff, so
unraveling the conflicts was "fun".)
I have a cron job that sends me a mail with the list of "unpushed"
repositaries on my account every nights (it also runs "git fsck", "git
gc", and writes some .keep files to prevent "git gc" from repacking
large packs and be friendly with backups and unison).

It's not really cleaned up, and may well work just for me, but in case
you're interested, the scripts are attached:

* git-gc-fsck.sh is the script itself

* git-foreach is a home-made git command to manage a set of unrelated
  repositories. Essentially, one can

  git foreach update   => run some "find" commands in your $HOME to find
                          repositories.

  git foreach do blah  => run command blah in each repository.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help