'git clean command with exclude does not work when ran as an alias
I run the following command in osx
git clean -dfX --exclude="\!.npmrc" --exclude="\!app-config.local.yaml"
Then neither file is removed.
If I create an alias like this and run gcnn then no files are removed
alias gcn='git clean -dfX --exclude="\!.npmrc" --exclude="\!app-config.local.yaml"'
Is there a difference I am missing?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
