If I execute
git version
mkdir test
cd test
touch a b c
git init
git add -A
git commit -m "test"
git branch -a
ls
x=$(git branch -a); echo $x
I get the following output:
git version 2.4.2
* master
a b c
a b c master
First line is the git version.
Second is the git branch -a
.
Third line is output of ls
.
Fourth line is the output of x=$(git branch -a); echo $x
This is weird. Shouldn't lines 2 and 4 be equal?