Ubuntu服务器的编译和Git常用命令
程序员文章站
2022-03-11 15:33:07
android源码全编译流程cd LA.UM.7.6/git branch -agit checkout -b MC501_custom origin/MC501_customsource build/envsetup.shlunch42make -j8 2>&1 | tee build.logrm -rf out/ && make -j16 2>&1 | tee build.logandroid源码模块单编译流程source bu....
- android源码全编译流程
cd LA.UM.7.6/
git branch -a
git checkout -b MC501_custom origin/MC501_custom
source build/envsetup.sh
lunch
42
make -j8 2>&1 | tee build.log
- android源码模块单编译流程
source build/envsetup.sh
lunch
mmm frameworks/base/package/SystemUI
# 或者make SystemUI
- 代码修改提交流程
git pull
git status
git add frameworks/base/media/java/abdroid.java
git commit -m "[BugID][1024][Description] music can't play [Solution] fix it"
# git config --global user.mail "yourname@email.com"
# git config --global user.name "yourname"
# git push origin HEAD:refs/for/对应的分支
git push origin HEAD:refs/for/SLM758W.meig
git log --oneline
- 返回上一层
cd ..
- 查看当前分支
git branch
- 查看当前状态
git status
- 切换分支
git checkout -b MC501_custom origin/MC501_custom
- 显示当前目录
ls
- 初始化编译环境,提供 shell 脚本的命令
build source/envsetup.sh
- 选择编译项
lunch
- 删除目录
rm -rf out/
- 查看存储空间
df -h
本文地址:https://blog.csdn.net/weixin_44008788/article/details/107476440