随笔分类 - Git
摘要:# 1. Change local message git commit --amend -m "New commit message" # 2. Push the change to remote git push --force-with-lease # 3. Other collaborato
阅读全文
摘要:Exclude files git df branch1 branch2 --name-only ':!kernel/include'
阅读全文
摘要:# 1. Delete local branch git branch -d your-branch # -d: Safe option that will only delete the branch if it has already been merged. # Or git branch -
阅读全文
摘要:# 1. Rename local branch git checkout old-name git branch -m new-name # -m, --move Move/rename a branch and the corresponding reflog. # or git branch
阅读全文
摘要:Squash merge Combine commits and ensure a cleaner merge history in your Git repository. git merge --squash targetBranch
阅读全文
摘要:MAJOR version: when you make incompatible API changes MINOR version: when you add functionality in a backwards compatible manner PATCH version: when y
阅读全文

浙公网安备 33010602011771号