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 on2022年7月27日在 Windows 上安装 MySQL Community ServerMySQLWindowsguideMySQL 5.7.7 及以后版本不再默认包含数据目录,需要使用 --initialize 或 --initialize-insecure 初始化。安装 MySQL 为 Windows 服务可以通过命令 .\bin\mysqld.exe --install 实现,启动服务使用 sc start MySQL 或 net start MySQL。
Published on2022年7月21日配置 Spring MVC 开发环境SpringThymeleafMyBatisSLF4JMVCguide配置 Spring MVC 开发环境时,需引入 Spring、Thymeleaf、MyBatis 和 SLF4J。Spring MVC 负责处理请求和视图渲染,Thymeleaf 用于生成动态网页,MyBatis 简化数据库操作,SLF4J 进行日志管理。通过 Maven 或 Gradle 配置依赖,构建高效、可维护的 Web 应用。
Published on2020年11月11日Images in Next.jsmarkdownnext-jsguideIn this article we introduce adding images in the tailwind starter blog and the benefits and limitations of the next/image component.