Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 530 Bytes

gitconfig-setup.md

File metadata and controls

33 lines (26 loc) · 530 Bytes

.gitconfig

[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

.gitconfig-[example-config]

[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]