git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Proposed command: git-sync

From
EBEyvind Bernhardsen <eyvind-git-list@orakel.ntnu.no>
Date
Oct 9, 2007, 19:50 UTC
Message-ID
<54B911B7-4130-4374-B555-FC23E881BD0A@orakel.ntnu.no>
In-Reply-To
<470BD5CF.9050201@imendio.com>
On 9. okt.. 2007, at 21.26, Sven Herzberg wrote:
Show 13 quoted lines
> 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
Previous: Sven HerzbergNext: Pierre Habouzit
Message 2 of 3 in “Proposed command: git-sync”
  1. Sven HerzbergOct 9, 2007
  2. Eyvind BernhardsenOct 9, 2007
  3. Pierre HabouzitOct 9, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.