Home > Net >  .gitconfig aliases work in one enlistment but not in another
.gitconfig aliases work in one enlistment but not in another

Time:07-23

I have the exact same .gitconfig file in two different enlistments. They only have 3 aliases defined. The .gitconfig is applied in one enlistment but not in the other and I can't for the life of me figure out why git isn't loading it. git config -l shows the aliases in the repo where it works but not in the repo where it is broken.

How do I troubleshoot this? The files are identical and have identical permissions. This is on Ubuntu 20.04, git 2.17.1.

CodePudding user response:

I finally discovered that one repo had a git config include.path applied and the other did not. By adding the include to the second repo it fixed the issue.

This is for security purposes and is covered in the documentation.

  •  Tags:  
  • git
  • Related