Création d’un dépôt git
.
$ cd project/
$ git init
$ git add *
$ git commit
But where to git push
to ?
$ git clone --bare . name_of_project.git
$ scp -r name_of_project.git distant.machine.tld:
Then you can create a new working copy (maybe on another machine) with :
$ git clone ssh://distant.machine.tld:/path/to/name_of_project.git
$ cd name_of_project/
[edit]
$ git commit -am "edit"
$ git push