git操作

2020-08-12  本文已影响0人  bgod_like

更新代码

git pull

更新远程分支

git fetch origin --prune

切换tag 并更改

git tag

git checkout -b 分支名字 tag名字

\color{red}{eg:} git checkout -b V1.0 tagV1.1

本地分支 删除 查看(git tag)

git tag -d 分支名字

远程分支 删除 查看(git show-ref --tag)

git push origin :refs/tags/分支名字

清除缓存

git rm -r --cached .

上一篇 下一篇

猜你喜欢

热点阅读