メインコンテンツまでスキップ

Gitコマンドチートシート

設定

gitで使用するエディタをvimにする

git config --global core.editor vim

git branchでpagerを使用しない

git config --global pager.branch 'false'

コミットに使用するユーザー名とメールアドレスを設定

git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"

全ての設定内容を表示

git config --global --list