git sync tags with remote
Git with Remote Sync Tags
2023-09-11 14:20:10 时间
git 同步遠程標籤
在 .git/config的 [remote "origin"]
下加了 fetch = +refs/tags/*:refs/tags/*
最後就變成
[remote "origin"]
url = gitPath
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/tags/*:refs/tags/*
運行
git fetch --prune --tags
就同步到遠程的標籤了
參考
相关文章
- [Git] Git fetch和git pull的区别
- [git]Git与Repo入门
- [NPM] Run npm scripts with git hooks
- [Practical Git] Navigate git command pager output with Unix less commands
- [Git] Recover Local Changes from `git reset --hard` with `git reflog`
- [Git] Use git add --patch for better commit history and mitigating bugs
- [Practical Git] Diagnose which commit broke something with git bisect
- [Practical Git] Clean up commits with git rebase
- 架设私有的Git服务器
- git 版本历史
- Git知识总览(一) 从 git clone 和 git status 谈起
- 【Git总结大全】git操作从入门到实战(总结篇)
- 【Git技巧】第七篇 git分区原理(超级详细)