| | |
Push local projects to remote warehouses
git init
git add .
git commit -m "feat: xxx"
git remote add origin https://xxx
git push -u origin "master"
Effective immediately after writing.gitignore
#Clear cache
git rm -r --cached .
#Retrace file
git add .
#Submission and comments
git commit -m "update .gitignore"
Type tag
#hit tag
git tag -a v1.0.0 -m "feat:xxx"
#Display content
git show v1.0
#Push this tag to the remote location
git push origin v1.0.0
#If you want to push all local new tags up at once
git push origin --tags
Delete tag
#Delete local tags
git tag -d tagName
#Delete remote tags
git push origin :refs/tags/tagName