あまりよく使うものではないけれど,最近個人的にたまによく使うことが多い設定をまとめてみました.
「これも追加しておいたら?」とか,「ここ間違ってる」とか「ここもっと楽に出来る」とかそういうのがあれば編集リクエストでも,コメントでも良いので頂けると嬉しいです.
$ git config --global --list
user.name=shy_azusa
[email protected]
$ git config --global user.name 名前
$ git config --global user.email メールアドレス
$ git config --global user.name shy_azusa
$ git config --global user.email [email protected]
$ git remote -v
origin [email protected]:shyazusa/origin.git (fetch)
origin [email protected]:shyazusa/origin.git (push)
github [email protected]:shyazusa/github.git (fetch)
github [email protected]:shyazusa/github.git (push)
$ git remote add リモート名 リモートのURL
$ git remote set-url リモート名 リモートのURL
$ git remote rm リモート名
$ git remote add github [email protected]:shyazusa/add.git
$ git remote set-url github [email protected]: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