Fatal: bad configuration file line in .gitconfig file when creating an alias to remove merged branches

Can someone help me figure out what is wrong with this line in the .gitconfig file?

[alias]
db = !git branch --merged | grep -v "\*" | xargs -n 1 git branch -d

The command itself works, I followed this post ( How to remove all git branches that were merged? )

But when I run the alias "git db", it will fail with "fatal: bad configuration file line 22" that points to this line in my .gitconfig file

+4
source share
1 answer

MrTux: ("") Git. , , , :

db = "!git branch --merged | grep -v \"*\" | xargs -n 1 git branch -d"
+5

All Articles