I do this command a lot
git merge --no-ff --no-commit SomeBranch
I tried to make an alias
git config alias.nff "merge --no-ff --no-commit $1"
and use it
git nff SomeBranch
But I got and error and saw this in my config file
[alias] nff = "merge --no-ff --no-commit "
So I changed it to
nff = "merge --no-ff --no-commit $1"
However I still get an error when I run the command
$ git nff SomeBranch fatal: $1 - not something we can merge
Why is it using $1 instead of my argument? And how might I set it via command like (i had to add $1 by hand in the config file)