LoginSignup
2
1

More than 1 year has passed since last update.

gitconfigをリポジトリに置いて共有する

Posted at

gitconfig をリポジトリで共通部分を外出しして管理したい

gitconfigファイルをリポジトリに作成

vi .gitconfig

リポジトリルートの.gitconfigをローカルのgitconfigのincludeファイルに指定する。

どうしてもここは必要か?

git config include.path '../.gitconfig'

確認

input.console
git config -l
output.console
include.path=../.gitconfig

参考

gitconfigのincludeが便利
.gitconfigはGitで管理しておいて、git config user.name/user.emailは管理したくない
gitconfig

2
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
2
1