git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Proposed command: git-sync
@ 2007-10-09 19:26 Sven Herzberg
  2007-10-09 19:50 ` Eyvind Bernhardsen
  2007-10-09 21:08 ` Pierre Habouzit
  0 siblings, 2 replies; 3+ messages in thread
From: Sven Herzberg @ 2007-10-09 19:26 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

I really regularly find myself typing git pull directly after git push.
That's why I write a small shell script that might be added to the stock
git distribution.

Regards,
  Sven

PS: Please add me to the CC of your replies, I don't read this list.

[-- Attachment #2: git-sync --]
[-- Type: text/plain, Size: 34 bytes --]

#!/bin/bash

git push && git pull

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

* Re: Proposed command: git-sync
  2007-10-09 19:26 Proposed command: git-sync Sven Herzberg
@ 2007-10-09 19:50 ` Eyvind Bernhardsen
  2007-10-09 21:08 ` Pierre Habouzit
  1 sibling, 0 replies; 3+ messages in thread
From: Eyvind Bernhardsen @ 2007-10-09 19:50 UTC (permalink / raw)
  To: Sven Herzberg; +Cc: git

On 9. okt.. 2007, at 21.26, Sven Herzberg wrote:

> I really regularly find myself typing git pull directly after git  
> push.
> That's why I write a small shell script that might be added to the  
> stock
> git distribution.
>
> Regards,
>  Sven
>
> PS: Please add me to the CC of your replies, I don't read this list.
> #!/bin/bash
>
> git push && git pull


I know this isn't really helpful, but you can accomplish the same  
thing by putting the following in your ~/.gitconfig:

[alias]
	sync = "! git push && git pull"

Eyvind Bernhardsen

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

* Re: Proposed command: git-sync
  2007-10-09 19:26 Proposed command: git-sync Sven Herzberg
  2007-10-09 19:50 ` Eyvind Bernhardsen
@ 2007-10-09 21:08 ` Pierre Habouzit
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre Habouzit @ 2007-10-09 21:08 UTC (permalink / raw)
  To: Sven Herzberg; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

On Tue, Oct 09, 2007 at 07:26:07PM +0000, Sven Herzberg wrote:
> I really regularly find myself typing git pull directly after git push.
> That's why I write a small shell script that might be added to the stock
> git distribution.

  this is the default behavior of git push in recent gits.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-10-09 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-09 19:26 Proposed command: git-sync Sven Herzberg
2007-10-09 19:50 ` Eyvind Bernhardsen
2007-10-09 21:08 ` Pierre Habouzit

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