Skip to content

Instantly share code, notes, and snippets.

@anil3a
Created July 16, 2020 05:47
Show Gist options
  • Save anil3a/e990b42a330e8fca89120a0e6eb9416e to your computer and use it in GitHub Desktop.
Save anil3a/e990b42a330e8fca89120a0e6eb9416e to your computer and use it in GitHub Desktop.
Git config name and email based on Folder directory ( i use in windows 10 )
[includeIf "gitdir:**/htdocs/mycompany-paypal/"]
path = .gitconfig-mycompany-paypal # filename where your custom git credential is saved for that particular folder
# This is Git's per-user configuration file.
# This will be used as global if you use.
[user]
# Please adapt and uncomment the following lines:
# name = unknown
# email = Anil@Anil(none)
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = your-user-name-to-git
email = yourl@emaiaddress-used-in-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment