//gitで管理するディレクトリを作成して移動
$ mkdir hoge
$ cd hoge


//ディレクトリをgitの管理下におく
$ git init
Initialized empty Git repository in /home/user/www/hoge/.git/


//remoteリポジトリを紐付け
//originは作成するリポジトリ名、その後はremoteリポジトリのパス、適宜変更
$ git remote add origin git@github.com:username/hoge.git


//紐付けたリポジトリはgit remote showで確認できる
$ git remote show origin
git * remote origin
Fetch URL: git@github.com:username/hoge.git
HEAD URL: git@github.com:username/hoge.git
Remote branches:
master new (next fetch will store in remotes/origin)
branch_A (next fetch will store in remotes/origin)
branch_B (next fetch will store in remotes/origin)...


//remoteリポジトリからpullする
$ git pull git@github.com:username/hoge.git master
以下処理...


▲上に戻る