Git メモ

提供: ペンギンラボ Wiki

リモートサーバにリポジトリをつくる

$ mkdir -p ~/git/[project].git
$ cd ~/git/[project].git
$ git --bare init

複数人で使用することがわかっているなら、ディレクトリの所有グループを適切なものに設定し、--shared オプションをつける。

$ git --bare init --shared

このリポジトリを追加して push する (name は origin など)

$ git remote add [name] ssh://[user]@[host]/~/git/[project].git
$ git push [name] master

出力に色をつける

$ git config --global color.ui true
個人用ツール
名前空間
変種
操作
案内
ツールボックス