git回退至指定版本,并更新远程仓库
摘要:1. git log 查到commit记录 2.复制 commit 后面的id 3. git reset --hard commit 后面的id // 回退 4. 强制更新远程仓库 git push -f origin 对应远程分支名
阅读全文
git协同开发
摘要:1. 创建远程仓库 github || gitLab 直接new Project即可 2. 克隆到本地 git clone xxxx 3. git add . 4. git commit -m '做了啥' 5. git pull 拉取最新代码 - 如有冲突 -- 能解决的自己解决 不能解决的联系上一
阅读全文