1、截图命令
adb shell /system/bin/screencap -p /sdcard/yunshang1.png
2、将截图复制到电脑盘中
测试有效:
adb pull /sdcard/yunshang1.png
(在As中)
2.6 git tag相关
1)打tag
1-1) Git 中创建附注标签十分简单。
$ git tag -a v1.4 -m "my version 1.4"
2)查看tag
git show v1.4
3)从tag拉取分支
git branch dev_Xta115_record tag_v1.0.10
4)
1.创建tag:
创建 tag 是基于本地分支的 commit,而且与分支的推送是两回事,就是说分支已经推送到远程了,但是你的 tag 并没有,如果把 tag 推送到远程分支上,需要另外执行 tag 的推送命令。
git tag <tagName> //创建本地tag
git push origin <tagName> //推送到远程仓库
若存在很多未推送的本地标签,你想一次全部推送的话:
git push origin --tags
以上是基于本地当前分支的最后的一个commit 创建的 tag ,但是如果不想以最后一个,只想以某一个特定的提交为tag ,也是可以的,只要你知道commit 的id。
git log --pretty=oneline //查看当前分支的提交历史 里面包含 commit id
git tag -a <tagName> <commitId>
2.查看标签
查看本地某个 tag 的详细信息:
git show <tagName>
查看本地所有 tag:
git tag 或者 git tag -l
查看远程所有 tag:
git ls-remote --tags origin
2.1 adb logcat -d >wzj.txt
2.2 submodule
git submodule init 和 git submodule update
子模块:"D:\reCloud\cloud-fusion-pad\pad-common-library"
git commit -am "hdmi Bug fix" ./submoduleDir && git push
3.在新建文件中clone
1.cd d:/yunshang
2.git clone xxx
git clone
git clone git@192.168.60.250:cloud-reconsideration/administrative-law-enforcement-terminal.git d:/yunshang
"D:\yunshang"
adb -s xxxx push C:\Users\admin\Desktop\test.doc sdcard/
亲测可用 push to device
adb push C:\Users\admin\Desktop\test.doc sdcard/
"D:\reCloud"
4.执行commit后,还没执行push时,想要撤销这次的commit:
git reset --soft HEAD^
adb pull sdcard/screenshot.png D:\download
//拉取
adb pull /storage/emulated/0/DCIM/Camera/fk.mp4 D:\download
adb pull /storage/emulated/0/DCIM/Camera/fk.mp4 D:\download
推送
adb push test.txt /data/
启动时间adb
adb shell am start -W com.xinshiyun.cloudcourttjs/com.xinshiyun.cloudcourttjs.activity.WelcomeActivity
Activity: com.xinshiyun.cloudcourttjs/.activity.WelcomeActivity
ThisTime: 181
TotalTime: 181
WaitTime: 197
Complete
install apk
adb install C:\Users\admin\Desktop\CloudFusionDesktop_22040121_v2.0.7_test.apk
adb install D:\xinshiyun\mediator-mini-pad\app\TJS\release\TJS_v2.0.0.0.apk
adb pull /sdcard/xsy/soundlevel.txt
项目中写入日志文件拉取LogFileUtil 测试可以如下:
adb pull /sdcard/xinshiyun/logs/mimi_pad.txt
网友评论