From: Dun Peal Date: Mon, 21 Mar 2011 16:39:43 GMT Subject: Weird behavior of shell variables in git aliases Message-ID: It seems that a variable is available only once?! How can the following shell session be explained: $ git config alias.test0 !echo $1 $ git test0 foo foo $ git config alias.test1 !echo $1 && echo $1 $ git test1 foo foo $ git config alias.test2 !BRANCH=$1 && echo $BRANCH && echo $BRANCH $ git test2 foo foo Thanks, D.