Skip to content

Instantly share code, notes, and snippets.

@kohrongying
Created July 16, 2021 06:49
Show Gist options
  • Select an option

  • Save kohrongying/78c4396e2953507a403d426d3f7ee557 to your computer and use it in GitHub Desktop.

Select an option

Save kohrongying/78c4396e2953507a403d426d3f7ee557 to your computer and use it in GitHub Desktop.
Git config for multiple projects
[user]
name = rongying
email = work@work.com
[includeIf "gitdir:~/Documents/ry/"]
path = ~/Documents/ry/.gitconfig
@kohrongying
Copy link
Author

Run git config user.name or git config user.email in the project directory with git initialized.
Run git config --list to view the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment