git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Getting git to help my memory
@ 2011-07-05 21:34 Evan Driscoll
  2011-07-05 22:08 ` Paul Ebermann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Evan Driscoll @ 2011-07-05 21:34 UTC (permalink / raw)
  To: git

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".)

Is there a way I can get git to print a "don't forget to push!" reminder
after it commits?

The best way I can think of is to put a post-commit hook in there. I haven't
tried it but I'd assume it would work, but would have to be on a
per-repository basis instead of global.

(I use git mostly for just my own projects, and almost always mostly in sort
of a centralized setup: I've got one bare *the* repository that I clone, and
push to and pull from that rather than between the copies. For a variety of
reasons, I'm pretty sure that model wouldn't work super well for me.)

Thanks,
Evan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-06  7:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-05 21:34 Getting git to help my memory Evan Driscoll
2011-07-05 22:08 ` Paul Ebermann
2011-07-05 23:52 ` Ben Walton
2011-07-06  7:52 ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).