我想通过使用git bash(msysgit)将unix样式路径传递给Android adb命令,但shell正在错误地解释我的路径。这是我迄今为止所尝试的:如何通过git bash for windows将绝对路径传递给adb命令?
$ adb push myfile /mnt/sdcard/
failed to copy 'myfile' to 'C:/Program Files (x86)/Git/mnt/sdcard/': No such file or directory
$ adb push myfile "/mnt/sdcard/"
failed to copy 'myfile' to 'C:/Program Files (x86)/Git/mnt/sdcard/': No such file or directory
$ adb push myfile '/mnt/sdcard/'
failed to copy 'myfile' to 'C:/Program Files (x86)/Git/mnt/sdcard/': No such file or directory
什么是正确的方法来做到这一点?
您是否在“cmd”(dos-prompt)中尝试了相同的操作?我认为它会在那里工作 – trans1st0r 2013-05-03 11:31:01
@DevJyotiBehera是的,我确实用windows cmd提示符来尝试它,它确实有效,但我试图找出它为什么不能用于msysgit。我想了解路径和引用在这里工作的方式。 – 2013-05-03 21:14:44
您是否检查过http://stackoverflow.com/q/11519659/1983854?另外,'ls/mnt/sdcard /'是否工作?查看它是否正确检测路径。 – fedorqui 2013-06-17 11:16:50