How do I pass an absolute path to the adb command via git bash for windows? How do I pass an absolute path to the adb command via git bash for windows? windows windows

How do I pass an absolute path to the adb command via git bash for windows?


According to this answer, the MSYS shell is mangling the file name according to these rules. According to the mangling rules, the following should work for you:

adb push myfile '//mnt\sdcard\'

(replace the first slash with two slashes and all remaining slashes with a backslash)


adb push myfile //mnt/sdcard

linux isn't picky about duplicate /s