# Proposed command: git-sync

3 messages from 2007-10-09 to 2007-10-09. Participants: Sven Herzberg, Eyvind Bernhardsen, Pierre Habouzit.
Thread: https://gitlist.dev/t/10220

## Sven Herzberg, 2007-10-09 19:26

Subject: Proposed command: git-sync
Message-ID: <470BD5CF.9050201@imendio.com>
URL: https://gitlist.dev/e/470BD5CF.9050201%40imendio.com

```
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

```

## Eyvind Bernhardsen, 2007-10-09 19:50

Subject: Re: Proposed command: git-sync
Message-ID: <54B911B7-4130-4374-B555-FC23E881BD0A@orakel.ntnu.no>
URL: https://gitlist.dev/e/54B911B7-4130-4374-B555-FC23E881BD0A%40orakel.ntnu.no
In-Reply-To: <470BD5CF.9050201@imendio.com>

```
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

```

## Pierre Habouzit, 2007-10-09 21:08

Subject: Re: Proposed command: git-sync
Message-ID: <20071009210824.GA13203@artemis.corp>
URL: https://gitlist.dev/e/20071009210824.GA13203%40artemis.corp
In-Reply-To: <470BD5CF.9050201@imendio.com>

```
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

```
