Today, I have come across a situation where I have to execute the gitbash on windows with linux commands.
The escape character doesn't alone solve the problem
Setting up an alias for bash where the path includes space
$ alias DOCKER_HOME=C:/Program Files/Docker/Docker
Errorbash: C:/Program: No such file or directory
Solution$ alias DOCKER_HOME=C:/"Program\ Files"/Docker/Docker
Hope my solution helps you in resolving the issue.
Please send your feedback and comments to email@example.com