LoginSignup
0
1

More than 5 years have passed since last update.

Git の初期設定

Last updated at Posted at 2017-12-22

新しいMacを購入したので、諸々の設定備忘録です。今回はGitの設定。

ユーザ情報の設定

大概設定し忘れてコミットしてしまったりして、恥ずかしい思いをしますね。

git config --global user.name "First-name Family-name"
git config --global user.email "address@email.com"

エディタを vim に変更

git config --global core.editor 'vim -c "set fenc=utf-8"'

git push のデフォルト設定

git push するときに出る警告を回避します。

git config --global --unset push.default
0
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
0
1