Tag: git
All the articles with the tag "git".
-
想把 Git 提交时间改成跨年那天的 00:00:00?用 git commit --amend --date 就能搞定。本文记录两种场景:修改当前最新提交的时间,以及通过 commit id 修改历史提交的时间。改完记得 git push 同步到远程。GitHub 绿点补救指南。
-
Fork 的项目落后原仓库几百个 commit 怎么办?本文用 hutool 项目演示完整的同步流程:添加 upstream 远程地址、fetch 原项目更新、merge 到本地分支、push 到自己的仓库。7 步命令搞定,再也不用删掉重新 Fork 了。开源贡献者必备技能。