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


i'm trying pass unix style path android adb command using git bash (msysgit) shell interpreting path incorrectly. i've tried far:

$ adb push myfile /mnt/sdcard/ failed copy 'myfile' 'c:/program files (x86)/git/mnt/sdcard/': no such file or directory  $ adb push myfile "/mnt/sdcard/" failed copy 'myfile' 'c:/program files (x86)/git/mnt/sdcard/': no such file or directory  $ adb push myfile '/mnt/sdcard/' failed copy 'myfile' 'c:/program files (x86)/git/mnt/sdcard/': no such file or directory 

what correct way this?

according this answer, msys shell mangling file name according these rules. according mangling rules, following should work you:

adb push myfile '//mnt\sdcard\' 

(replace first slash 2 slashes , remaining slashes backslash)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -