LoginSignup
3
1

More than 1 year has passed since last update.

Git で最初に設定する Config

Posted at
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)"
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1