martes, julio 05, 2011

un twitter personal en tu server usando git (?)

en tu server preferido:

[galaxy]$ git init --bare me.git
Initialized empty Git repository in /home/marianoguerra/

[galaxy]$ cat me.git.php 

header("Content-type: text/plain");
system("git log --pretty=format:\"%aD %an: %s%n%b%n\"");

[galaxy]$ cp me.git.php me.git/index.php

en tu maquina:

[mariano@ganesha ~]$ git clone ssh://         
Cloning into me...'s password: 
warning: You appear to have cloned an empty repository. 
[mariano@ganesha ~]$ cd me 
[mariano@ganesha me]$ git commit --allow-empty -m "hello world"
[master (root-commit) 5bce037] hello world 
[mariano@ganesha me]$ git push origin master's password: 
Counting objects: 2, done.
Writing objects: 100% (2/2), 171 bytes, done.
Total 2 (delta 0), reused 0 (delta 0)
To ssh://
 * [new branch]      master -> master
[mariano@ganesha me]$ curl
Tue, 5 Jul 2011 12:46:17 +0100 Mariano Guerra: hello world

se aceptan mejoras de todo tipo :D

No hay comentarios.:


Archivo del Blog