随笔分类 -  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 阅读全文
posted @ 2023-04-17 17:29 shendawei 阅读(27) 评论(0) 推荐(0)
摘要:Exclude files git df branch1 branch2 --name-only ':!kernel/include' 阅读全文
posted @ 2023-04-16 11:45 shendawei 阅读(11) 评论(0) 推荐(0)
摘要:# 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 - 阅读全文
posted @ 2023-04-16 10:52 shendawei 阅读(45) 评论(0) 推荐(0)
摘要:# 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 阅读全文
posted @ 2023-04-07 16:32 shendawei 阅读(191) 评论(0) 推荐(0)
摘要:Squash merge Combine commits and ensure a cleaner merge history in your Git repository. git merge --squash targetBranch 阅读全文
posted @ 2023-03-07 18:59 shendawei 阅读(33) 评论(0) 推荐(0)
摘要:MAJOR version: when you make incompatible API changes MINOR version: when you add functionality in a backwards compatible manner PATCH version: when y 阅读全文
posted @ 2023-03-07 18:30 shendawei 阅读(32) 评论(0) 推荐(0)