主题
github流程化操作
克隆代码
bash
git clone https://github.com/heavenspring/odoo_logistics.git切换到分支并在分支中修改代码
bash
git checkout -b feature-v1-qweb_report查看代码的修改情况
bash
git diff上传更新后的代码至暂存区
bash
git add .首次提交需要配置身份信息
bash
git config user.name heavenspring
git config user.email 1084967478@qq.com提交代码到本地的git分支 feature-v1-qweb_report
bash
git commit -m "qweb报表"推送本地分支 feature-v1-qweb_report 到 github,此时github就会多出来一个分支 feature-v1-qweb_repor
bash
git push origin feature-v1-qweb_report在github中创建Pull requests,拉取 feature-v1-qweb_report 到main
在github中审核 squash and merge
在github中删除分支 feature-v1-qweb_report
切换到本地main分支,删除 feature-v1-qweb_report 分支
bash
git checkout main
git branch -D feature-v1-qweb_report主分支中拉去最新代码
bash
git pull origin main