fast throw-away git repository

Based on the article How to Run Your Own Git Server, I've constructed a small list for fast git setup for temporary projects.

Server:


$ mkdir -p /the/server/repository/dir
$ cd /the/server/repository/dir
$ git init --bare

Client:


$ cd /my/project/directory
$ git init    # Note: without --bare
$ git add, commit etc
$ git push --set-upstream origin master

Other client:


$ git clone /the/server/repository/dir
or
$ git clone [ssh://]user@host:/the/server/repository/dir
Categories: linux

Updated: