git操作
step1:本地回退到相应的版本
git reset --hard <版本号>
git reset --hard 203738c9ccad7d95b728c8d9d287f2ff24eaaca2
step2:远程仓库也退到相应的版本
git push origin <分支名> --force
git push origin master --force
gitlab管理master的版本回退的地方在Setting->Repository->Protected Branches
创建新的分支:
git branch yourNewBranchName
git checkout yourNewBranchName
git push -u origin yourNewBranchName
gitlab打tag:
查看标签 git tag
创建标签 git tag 标签名字 -m '消息内容'
推送标签 git push origin 标签名字
删除标签 git tag -d 标签名字
删除远端的标签 git push origin :refs/tags/2.0.2
推送 git push origin
git bash存储本地的git pull的用户名密码 git config --global credential.helper store