{"thread":{"id":"10220","subject":"Proposed command: git-sync","startedAt":"2007-10-09T19:26:07Z","lastAt":"2007-10-09T21:08:24Z","messageCount":3,"participants":["Sven Herzberg","Eyvind Bernhardsen","Pierre Habouzit"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"55301","messageId":"470BD5CF.9050201@imendio.com","threadId":"10220","inReplyTo":null,"subject":"Proposed command: git-sync","fromName":"Sven Herzberg","fromEmail":"sven@imendio.com","sentAt":"2007-10-09T19:26:07Z","receivedAt":"2007-10-09T19:26:07Z","isPatch":false,"sender":{"key":"sven@imendio.com","avatar":"https://gravatar.com/avatar/1f83ce0b96e74412ae010be6343303fd5fcfa7f87aa1092b53002c4366c9af5e?d=mp&s=160"},"body":"I really regularly find myself typing git pull directly after git push.\nThat's why I write a small shell script that might be added to the stock\ngit distribution.\n\nRegards,\n  Sven\n\nPS: Please add me to the CC of your replies, I don't read this list.\n\n\n#!/bin/bash\n\ngit push && git pull\n"},{"id":"55302","messageId":"54B911B7-4130-4374-B555-FC23E881BD0A@orakel.ntnu.no","threadId":"10220","inReplyTo":"470BD5CF.9050201@imendio.com","subject":"Re: Proposed command: git-sync","fromName":"Eyvind Bernhardsen","fromEmail":"eyvind-git-list@orakel.ntnu.no","sentAt":"2007-10-09T19:50:44Z","receivedAt":"2007-10-09T19:50:44Z","isPatch":false,"sender":{"key":"eyvind-git-list@orakel.ntnu.no","avatar":null},"body":"On 9. okt.. 2007, at 21.26, Sven Herzberg wrote:\n\n> I really regularly find myself typing git pull directly after git  \n> push.\n> That's why I write a small shell script that might be added to the  \n> stock\n> git distribution.\n>\n> Regards,\n>  Sven\n>\n> PS: Please add me to the CC of your replies, I don't read this list.\n> #!/bin/bash\n>\n> git push && git pull\n\n\nI know this isn't really helpful, but you can accomplish the same  \nthing by putting the following in your ~/.gitconfig:\n\n[alias]\n\tsync = \"! git push && git pull\"\n\nEyvind Bernhardsen\n"},{"id":"55311","messageId":"20071009210824.GA13203@artemis.corp","threadId":"10220","inReplyTo":"470BD5CF.9050201@imendio.com","subject":"Re: Proposed command: git-sync","fromName":"Pierre Habouzit","fromEmail":"madcoder@debian.org","sentAt":"2007-10-09T21:08:24Z","receivedAt":"2007-10-09T21:08:24Z","isPatch":false,"sender":{"key":"madcoder@debian.org","avatar":"https://avatars.githubusercontent.com/u/44708?v=4"},"body":"On Tue, Oct 09, 2007 at 07:26:07PM +0000, Sven Herzberg wrote:\n> I really regularly find myself typing git pull directly after git push.\n> That's why I write a small shell script that might be added to the stock\n> git distribution.\n\n  this is the default behavior of git push in recent gits.\n\n-- \n·O·  Pierre Habouzit\n··O                                                madcoder@debian.org\nOOO                                                http://www.madism.org\n"}]}