Online quick lookup table of git commonly used commands. Easily find and master high-frequency commands such as Git initialization, commit, branch management, merge, and rollback to improve the efficiency of code version control. Ideal for developers, programmers and DevOps professionals, use it anytime, anywhere to help you handle Git operations efficiently.
使用说明
Push local projects to remote warehouses
git init
git add .
git commit -m "feat: xxx"
git remote add origin https://xxx
git pull --rebase origin xxx
git push -u origin xxx
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