####リモートでベアリポジトリ作成
$ mkdir -p git/bare/repo.git
$ cd git/bare/repo.git
$ git --bare init --share
####ローカルでノンベアリポジトリを作成
$ mkdir repo
$ git init
$ git add .
$ git commit -m 'first commit'
####ローカルでリモートリポジトリを登録
$ git remote add origin ssh://username@remote_server/git/bare/repo.git
※ この操作で"ssh://username@remote_server/git/bare/repo.git"の識別子がoriginになる。
####ローカルリポジトリの内容をリモートリポジトリへ送信
$ git push -u origin master
※originは"ssh://username@remote_server/git/bare/repo.git"を指す。
-uを指定すると今後、git pushと指定するだけでoriginリポジトリにmasterブランチをpushするようになる。
また、git pullと指定するだけでoriginリポジトリのmasterブランチから取得するようになる。