3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have 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

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?