Git Config

Features

  • Set user and email according to the directory
  • Ignore files globally

Installation

git clone https://github.com/lbbniu/gitconfig.git ~/github/gitconfig

Usage

Add the following code to the ~/.gitconfig

[include]
    path = ~/github/gitconfig/.gitconfig

参考