04 2023 档案

摘要:# 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 阅读(12) 评论(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)