git 拉取项目过大 下拉失败
初始化
git init
与远程仓库建立连接
git remote add origin https://sheng.wang@source.supwisdom.com/gerrit/a/platform\_product/platform\_portal
把远程分支拉到本地
git fetch origin branch_5.1.2_nwpu
在本地创建分支branch_5.1.2_nwpu 并切换到该分支
git checkout -b branch_5.1.2_nwpu origin/branch_5.1.2_nwpu
把分支上的内容都拉取到本地
git pull origin branch_5.1.2_nwpu
git 撤销commint
首先通过git log 命令找到commit对应的id,然后执行下面的语句就会撤销所选id及其后面所有的提交了。
git reset —soft HEAD=id
git reset —soft HEAD^
撤销上次commint
$ git reset —soft HEAD
还没有评论,来说两句吧...