常用命令记录

Git命令:

查看分支:git branch -r

创建并更新本地远程分支:git fetch     

切换分支:git checkout 分支名

更新代码:git pull

查看所有commit记录:git log

查看项目Git地址: git remote -v

本地还原被修改的文件:
git clean . -fd
git checkout . -f

git config --global user.email "你的邮箱"

git config --global user.name "你的昵称"

Git完全清除提交信息/重建版本库


ADB命令

adb 通过wifi连接:
adb connect (ip):5555
adb disconnect (ip):5555

adb bugreport D:\anrtest
adb install -r APK路径

adb shell screenrecord /sdcard/sdcard/screenrecord.mp4      结束的时候就按ctrl+c就行
adb shell screenrecord --time-limit 130 /sdcard/screenrecord.mp4        (单位:秒)
adb pull /sdcard/sdcard/screenrecord.mp4 D:/    adb导出刚刚的时候到电脑

adb shell pm list package -3    列出第三方的应用
adb shell pm path 包名         (包名:top.animal.happy.winner)
adb pull 路径 D:\appDir           (路径:/data/app/top.animal.happy.winner-GnXdpgYY-C8NbVZHyjicNQ==/base.apk)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容