local作業のリポジトリを共有リモートリポジトリへ移管する
先ずはlocalでコミットまで行う
local
$ git add . $ git commit
remote側でpushされるリポジトリを作成
remote
$ mkdir origin $ git init $ git config --bool core.bare true
再びlocal側でremote登録、及びpushまで
local
$remote add origin ssh://user@address/path_to/origin $ git push origin master
これで共有リポジトリとなり、職場-自宅等別環境からcloneしたりする
$ git clone ssh://user@address/path_to/origin workrepo