[credential]
helper = store
[user]
name = Nabin Gyawali
email = [email protected]
[includeIf "gitdir:[path here]"]
path = .gitconfig-[example-config]
[core]
editor = vim
Note: Include the trailing slash (/) on the path
[user]
name = nabin.gyawali
email = [email protected]
to verify
git config user.name
eg for windows
[includeIf "gitdir:C:/Users/ACER/projects/"]
path = .gitconfig-[example-config]