1、git clone URL // 克隆远端主分支代码到PC
2、git branch -a // 查看该repository的项目的所有分支
3、git log -1 // 查看最近一次提交记录的哈希值
4、git status // 查看本地分支名称和已更改文件列表
5、git add /iec61850/app/mms/main.c // 添加已变更文件
6、git checkout -b "Dev_debug_haoyj" Dev_debug // 从远端分支复制代码并在本地创建自己分支
7、git checkout Dev_debug(或master) // 强制切换到repository上的项目分支
8、git commit -m "revision notes" // 修改摘要
9、git push origin Dev_debug_haoyj // 推送本地代码到gitlab
10、git pull origin Dev_debug // 从远端分支更新本地代码
11、git reset --hard "hash value" // 和git log -n结合使用,用于强制切换到某个时间节点的代码