I have the following git branches
foo
bar
foobar
feature/foo
feature/bar
feature/buzz
How would you do a for loop over all branches that start with the word 'feature/' ?
When I try the following, it strangely prints out more than just the git branches.
for i in $(git branch --list "feature/*"); do echo $i; done;
stuff.txt
icon.jpg
morestuff.txt
Vagrantfile
feature/foo
feature/bar
feature/buzz