{"thread":{"id":"18576","subject":"Git for collaborative web development","startedAt":"2009-03-26T18:51:18Z","lastAt":"2009-03-27T00:57:21Z","messageCount":5,"participants":["Carlo","Sverre Rabbelier","Mr.SpOOn","Giuseppe Bilotta"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"109561","messageId":"loom.20090326T184207-345@post.gmane.org","threadId":"18576","inReplyTo":null,"subject":"Git for collaborative web development","fromName":"Carlo","fromEmail":"mr.spoon21@gmail.com","sentAt":"2009-03-26T18:51:18Z","receivedAt":"2009-03-26T18:51:18Z","isPatch":false,"sender":{"key":"mr.spoon21@gmail.com","avatar":"https://gravatar.com/avatar/dd14cc2f79de3b58a3301a3b6f5ea4f0e72c79172d1dc919eb08016830e57c9e?d=mp&s=160"},"body":"Hi,\nI'm going to work on a web project with a friend. We will host our code on a\nserver and my idea was to set up a git repository (maybe using gitosis) so that\nwe could work on our machines and push the changes to the server.\n\nHe said that it would be complicated, because if he's going to try some changes\nto show me on the fly he just can't. I mean, he would like to work on the code\ndirectly on the server, so that he can change the code, save and I can just\nrefresh the page from my browser and see what he did.\n\nUsing git he should save, commit, add, push... so it's a bit longer.\n\nIs there a nice compromise? Or a better way to use git for such a task or web\ndevelopment in general?\n\nThanks for your help,\nbye.\n"},{"id":"109562","messageId":"fabb9a1e0903261218y329562f6uf18613f3f9e15836@mail.gmail.com","threadId":"18576","inReplyTo":"loom.20090326T184207-345@post.gmane.org","subject":"Re: Git for collaborative web development","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-03-26T19:18:00Z","receivedAt":"2009-03-26T19:18:00Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Thu, Mar 26, 2009 at 19:51, Carlo <mr.spoon21@gmail.com> wrote:\n> Using git he should save, commit, add, push... so it's a bit longer.\n>\n> Is there a nice compromise? Or a better way to use git for such a task or web\n> development in general?\n\n$ git config alias.tryout \"!git branch -f tryout && git checkout\ntryout && git add . && git commit -m TryOut && git push shared_repo\ntryout\"\n\nYou can even see the page live if you set the proper attributes ;).\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"109563","messageId":"8f67b6f80903261241s7bbb179bwf5e9fa64f657ca1d@mail.gmail.com","threadId":"18576","inReplyTo":"fabb9a1e0903261218y329562f6uf18613f3f9e15836@mail.gmail.com","subject":"Re: Git for collaborative web development","fromName":"Mr.SpOOn","fromEmail":"mr.spoon21@gmail.com","sentAt":"2009-03-26T19:41:32Z","receivedAt":"2009-03-26T19:41:32Z","isPatch":false,"sender":{"key":"mr.spoon21@gmail.com","avatar":"https://gravatar.com/avatar/dd14cc2f79de3b58a3301a3b6f5ea4f0e72c79172d1dc919eb08016830e57c9e?d=mp&s=160"},"body":"2009/3/26 Sverre Rabbelier <srabbelier@gmail.com>:\n> $ git config alias.tryout \"!git branch -f tryout && git checkout\n> tryout && git add . && git commit -m TryOut && git push shared_repo\n> tryout\"\n\nThat seems cool. I'll take a look to some documentation to understand it :D\nThanks.\n"},{"id":"109565","messageId":"fabb9a1e0903261244n15d31b1dw4990e31aafca64f3@mail.gmail.com","threadId":"18576","inReplyTo":"8f67b6f80903261241s7bbb179bwf5e9fa64f657ca1d@mail.gmail.com","subject":"Re: Git for collaborative web development","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-03-26T19:44:12Z","receivedAt":"2009-03-26T19:44:12Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Thu, Mar 26, 2009 at 20:41, Mr.SpOOn <mr.spoon21@gmail.com> wrote:\n> That seems cool. I'll take a look to some documentation to understand it :D\n\nThere's probably some typo's and thinko's in there, but you get the\nidea. You can use aliases in git to define your own commands. If you\ndo not prefix the command with a bang it is interpreted as git\ncommand, I use this one to review the changes I made with respect to\norigin:\n\n$ git config alias.new \"log -C -M --reverse -p origin/master..\"\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"109588","messageId":"gqh89k$tob$1@ger.gmane.org","threadId":"18576","inReplyTo":"loom.20090326T184207-345@post.gmane.org","subject":"Re: Git for collaborative web development","fromName":"Giuseppe Bilotta","fromEmail":"giuseppe.bilotta@gmail.com","sentAt":"2009-03-27T00:57:21Z","receivedAt":"2009-03-27T00:57:21Z","isPatch":false,"sender":{"key":"giuseppe.bilotta@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1464?v=4"},"body":"On Thursday 26 March 2009 19:51, Carlo wrote:\n\n> Hi,\n> I'm going to work on a web project with a friend. We will host our code on a\n> server and my idea was to set up a git repository (maybe using gitosis) so that\n> we could work on our machines and push the changes to the server.\n> \n> He said that it would be complicated, because if he's going to try some changes\n> to show me on the fly he just can't. I mean, he would like to work on the code\n> directly on the server, so that he can change the code, save and I can just\n> refresh the page from my browser and see what he did.\n> \n> Using git he should save, commit, add, push... so it's a bit longer.\n> \n> Is there a nice compromise? Or a better way to use git for such a task or web\n> development in general?\n\nYou could try using gitweb to expose the local repository directly.\n\nIf the web pages don't rely on hard-coded paths (i.e. all links are\nrelative) you should actually be able to navigate the tentative website\nin plain blob view mode, for any given commit or branch.\n\n\n-- \nGiuseppe \"Oblomov\" Bilotta\n"}]}