From: Junio C Hamano Date: Sun, 13 Aug 2006 19:53:06 GMT Subject: Re: [RFC] git-publish Message-ID: <7vmza8l8f1.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > I'd rather have a command which tells me if I have commits after the last > time I pushed. Yes. However, I have not felt the need for "a command". In my workflow, I use tracking branches for the push destination. Before I rewind / rebase / clean-up, I fetch from my usual push destination with these lines: URL: kernel.org:/pub/scm/git/git.git/ Pull: master:refs/tags/ko-master Pull: next:refs/tags/ko-next Pull: +pu:refs/tags/ko-pu Pull: maint:refs/tags/ko-maint and have a script to do this (Meta/KO -- found in "todo" branch): #!/bin/sh git fetch ko for i in master next pu maint do git show-branch $i ko-$i done I primarily use this to make sure I do not rewind beyond what are already pushed out, but I also can use it to see what's outstanding to be pushed.