Criando um repositorio Git

Lado do servidor:

$ cd /pasta/repo
$ mkdir meuprojeto.git
$ cd meuprojeto.git
$ git –bare init
cliente:

$ cd meuprojeto
$ git init
$ git add .
$ git commit -m ‘meu primeiro commit’
$ git remote add origin user@meu.server.br:/pasta/repo/meuprojeto.git
$ git push origin master

 

 

Fontes:

http://processamentix.blogspot.com.br/2013/11/criando-um-repositorio-git-de-forma.html

http://git-scm.com/book/pt-br/Git-no-Servidor-Configurando-o-Servidor

http://rberaldo.com.br/git-criando-repositorios-remotos/

http://wiki.locaweb.com.br/pt-br/Usando_GIT_na_Hospedagem_Linux