LoginSignup
0
0

More than 3 years have passed since last update.

global gitignore

Last updated at Posted at 2020-01-05

Ignoring files: Create a global .gitignore - GitHub Helpより。

コンピューター内のすべてのレポジトリに適応するようグローバルに .gitignore を設定したい場合、たとえば %USERPROFILE% などのディレクトリに gitignore ファイル (特定しやすいよう .gitignore_global 等のファイル名にすると良い)を作成し、以下コマンドを実行する。

$ git config --global core.excludesfile ~/.gitignore_global

ただ共同制作する場合、ちゃんとレポジトリ独自の .gitignore に登録して共有できるようにした方がよさそうな気がするけどどうなのだろう。emacsやVSCode等のIDEが生成する環境設定ファイルはグローバルの方が楽になりそうな気も。

0
0
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
0