fly sftp get on Windows (Git Bash)

❯ fly sftp get /data/production.sqlite3
Error: get: remote file C:/Program Files/Git/data/production.sqlite3: file does not exist

Not sure why it’s prepending the above with C:/Program Files/Git. I’m running the command from a Git Bash shell. If run cmd to bring up a standard Windows shell and then try the sftp command it works fine.

This isn’t a deal-breaker, just a heads up for anyone else experiencing the same issue. It might just be something specific to Git Bash or maybe even just my setup.

Solution: Git bash is adding its current path to one of the parameter - Stack Overflow


❯ fly sftp get /data/production.sqlite3
4096 bytes written to production.sqlite3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.