# 2021_flow **Repository Path**: wang-zhongqiang/w2021_flow ## Basic Information - **Project Name**: 2021_flow - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-28 - **Last Updated**: 2021-06-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 2021 入职培训 - 基础 ------------------- 1 - Vim ----- * Vim 使用 [介绍](./vim/Readme.md) 2 - Git flow -------- * Vendor Mesh [介绍](./mesh/Readme.md) Author:`浩槟` * AT Client [介绍](./spp_le/AT主机SDK说明.md) * Beacon [介绍](./beacon/Readme.md) Author:`灵永` * HID [介绍](./HID/Readme.md) Author: `李杰` 3 - Git Playground ------------------- * 在[test](./test) 目录下,根基个人名字,建立对应的文件夹,例如[Contributor](./Contributor),并在对应文件夹下提交作业, * `题目` : 举例说明一代码片段如何实现抽象,封装等概念,使用markdown 语法完成. * ------------------- * 交作业1 [Readme.md](./test/NieZhanran/Readme.md) Author: `聂湛然` 4 -Repo flow -------------- [repo]:./repo-workflow.png [git]:./26074270_1314715447d1hD.png 统一开发流: 【master】 分支下: * Repo 初始化 : `repo init -u ssh://caibingquan@192.168.8.212:29418/BR22/manifest` `repo sync = git pull --rebase` commit: workspace commit : `git commit` remote commit : `repo upload = git push` * 同步远程分支:`repo sync` * 检查所有子仓库状态:`repo status` ,如果有改动,同步会出现分支跟踪脱离; * 检查子仓库状态:`git status` * 检查子仓库跟踪状态:`git branch -vv` * 跟踪分支:`git branch --set-upstream-to=origin/master`,针对远程跟踪丢失; * 本地改动:`git commit -a` * 改动合并:`git commit --amend`,针对重复的提交或补充性的提交; * 改动暂存:`git stash`,针对同步前,未提交的改动; * 合并冲突:`git mt`,针对repo sync 后出现冲突,解决后检查状态clean 即可git rebase --continue * 上传远程分支:`repo upload` * 总仓库切换:`repo forall git co master` * 总仓库状态:`repo status` * 上传 `repo forall -c git pull --rebase`,区别master 用法 * 同步 `repo forall -c git push origin HEAD:refs/for/earphone-test`,区别master 用法 ![Git 流程图][git] ![Repo 流程图][repo]