git config --global user.name "User Name"
git config --global user.email "user.name@example.com"
## エイリアス
git config --global alias.co "checkout"
git config --global alias.b "branch"
git config --global alias.bd "branch -d"
git config --global alias.f "fetch -p"
git config --global alias.s "status"
git config --global alias.log1 "log --oneline --graph"
git config --global alias.log2 "log --graph --date-order -C -M --pretty=format:'%C(bold blue)%h%C(reset) %C(green)%ad%C(reset) %s %C(green)[%an]%C(reset) %C(yellow)%d%C(reset)' --date=format:'%Y-%m-%d %H:%M'"
git config --global alias.log3 "log2 --all"
git config --global alias.localprune '!git branch --merged | grep -v \* | xargs git branch -d'
# その他
git config --global push.default current
git config --global core.editor "$(which vim)"
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
31