Bug复现
- 拉取代码并切换分支同步代码
- git branch //查看当前所处分支
- git branch -a //查看本地分支以及远端分支
- git checkout -b 本地分支 origin/远端分支 //关联本地分支和远端分支
- git pull && git reset FETCH_HEAD //当前分支与远端同步
- git checkout 本地分支 //切换到本地分支
- git branch -D 本地分支 //删除本地分支
- git branch -vv //查看本地分支和远端分支的关联情况
- git log --online
- git log --graph --pretty=online --abbrev-commit
- git log (-p --) filename
- git clean
- git clean -fd FILE
- git clean -nfd
- out/也会删除
- git show COMMIT_ID_FILE_NAME
确认解决方案
- git status . //查看目前git工作区状态
- git diff 文件名 //比较修改点
- git checkout 文件名 //撤销对该文件的修改
- git checkout . //撤销当前目录的所有修改
- adb push *.so /DEVICE/PATH //烧写so文件验证
- adb reboot bootloader //烧写镜像验证
- fastboot flash boot boot.img
- kernel/system
- fastboot flash boot boot.img