Daily dilemma: The content of this article is a summary of the information I actually needed to find, so I wondered where it would be more appropriate during the process.jpg
This time it was posted in the issues of GitHub. I had previously learned about a [[FoamNote]] plugin based on VSCode, but it was not very convenient either.
OneNote
, Simple Sticky Notes
, and QQ Favorites
are also used by me usually, which is quite fragmented.
Not long ago, I saw that "Obsidian" can be self-hosted, so I wanted to try it out.
Delete Tag#
# Local
git tag -d <tagname>
# Remote
git push origin --delete tag <tagname>
Another way to write it
git tag -d [tagname]
git push origin :[tagname]
View Remote Tags#
git ls-remote --tags origin
# e4eeb3dfc265044ad1a9c367d7d9ad76026194b0 refs/tags/v-2021-08-03
# 5eaed018d1da95e3c2fcd69c02a0b98380f95878 refs/tags/v-2021-08-04
# 1b9476e7e41e39d0575edc461b62ca10c338f572 refs/tags/v-2022-09-02
View Local Tags#
git tag
# v-2021-08-03
# v-2021-08-04
# v-2022-09-02
git tag -n
# v-2021-08-03 Workflow - Auto Release
# v-2021-08-04 update .github\workflows\Release.yml
# v-2022-09-02 base. git CI
Add and Push Tags#
git tag -a v-test-2022-09-02 -m '2022-09-02'
git push origin --tags
Conflict between Remote and Local Tags#
Error message during pull operation:
would clobber existing tag
Solution:
# Force overwrite local tag
git fetch --tags -f
would clobber existing tag - Reminiscing in Vain - Blog Garden
https://www.cnblogs.com/liangfc/p/14372579.html