Reputation: 11217
I tried to add some bang aliases (say... !git stash pop). But those does not work.
[alias]
pop = !git stash pop
This unfortunatelly does not work (please ignore the fact I can use it without the bang - I needed a command to test it. My alias is more complex).
$ git pop
fatal: 'stash' appears to be a git command, but we were not
able to execute it. Maybe git-stash is broken?
It works withouth the bang
[alias]
pop = stash pop
As expected
$ git pop
No stash found.
Any ideas?
Upvotes: 1
Views: 881
Reputation: 11217
I traced it down to having non-ascii username and spaces in path!
Spaces in path in windows did work for msysgit executables. But did not work for anything bash. You need to add quotes around it to work in bash. That broke msysgit. So I need to install git to non-spaced path. Then it couldn't find my SSH keys because of non-ascii characters in my home dir /home/Tomáš -> was /home/Tom%45%64 or something like that. So I needed to rename my local user. That seems to solve the issue completly.
Upvotes: 1