Published on2025年5月27日合并多个已经推送到远程仓库的提交gitgithubguide合并多个提交是通过 Git 的 rebase 或 merge 命令实现的,尤其是当多个提交已经被推送到远程仓库时。使用 git rebase -i 来重写历史,合并多个提交为一个,避免修改公共历史,避免影响其他协作者。若已经推送,可以选择强制推送 (--force) 来更新远程仓库。
Published on2025年5月27日将远程仓库回滚到特定的提交gitgithubguide使用 git reset --hard <commit-hash> 将本地仓库回滚到特定提交,再使用 git push --force 强制推送到远程仓库。
Published on2019年10月11日Markdown GuidemarkdowngithubguideMarkdown cheatsheet for all your blogging needs - headers, lists, images, tables and more! An illustrated guide based on GitHub Flavored Markdown.