あまりよく使うものではないけれど,最近個人的にたまによく使うことが多い設定をまとめてみました.
「これも追加しておいたら?」とか,「ここ間違ってる」とか「ここもっと楽に出来る」とかそういうのがあれば編集リクエストでも,コメントでも良いので頂けると嬉しいです.
$ git config --global --list
user.name=shy_azusa
user.email=shy.azusa@gmail.com
$ git config --global user.name 名前
$ git config --global user.email メールアドレス
$ git config --global user.name shy_azusa
$ git config --global user.email shy.azusa@gmail.com
$ git remote -v
origin git@github.com:shyazusa/origin.git (fetch)
origin git@github.com:shyazusa/origin.git (push)
github git@github.com:shyazusa/github.git (fetch)
github git@github.com:shyazusa/github.git (push)
$ git remote add リモート名 リモートのURL
$ git remote set-url リモート名 リモートのURL
$ git remote rm リモート名
$ git remote add github git@github.com:shyazusa/add.git
$ git remote set-url github git@github.com:shyazusa/edit.git
$ git remote rm github
$ git config --global help.autocorrect 待ち時間
$ git config --global commit.verbose trueかfalseでオンオフ
$ git config --global help.autocorrect -1
$ git config --global commit.verbose true