删除远程分支tag
- 先删除本地仓库tag
git tag -d $tagname
- 再删除远程仓库tag
git push origin :refs/tags/$tagname
查看历史命令
git reflog
撤销更改
- 撤销工作区所有更改
git checkout .
- 撤销暂存区所有更改
git reset HEAD
Github提交大文件
git lfs init
删除远程分支tag
git tag -d $tagname
git push origin :refs/tags/$tagname
查看历史命令
git reflog
撤销更改
git checkout .
git reset HEAD
Github提交大文件
git lfs init
设置git代理: 设置github.com走代理 编辑~/.gitconfig文件,添加以下代码: [https "https://github.com"] proxy = socks5://127.0.0.1:1086 设置github.com走IP(效果未验证,可跳过此步骤) 编辑/etc/hosts文件,添加以下代码: 151.101.72.249 http://global-ssl.fastly.Net192.30.253....…