# Git 常见问题

URL: https://caijiao.org/how-to/git/
Source: docs/how-to/git/index.md
Description: Git 常见问题库，整理撤销 commit、恢复删除文件、修改 commit message、合并 commit、解决冲突、删除远程分支、重命名分支、修改 remote 和找回丢失提交等高频问题。

这里集中整理日常开发中最常搜的 Git 问题。每页先给快速答案，再说明适用场景、风险和相关命令。

## 撤销与恢复

- [Git 如何撤销最后一次 commit](/how-to/git/undo-last-commit)
- [Git 如何恢复删除文件](/how-to/git/recover-deleted-file)
- [Git 如何找回丢失 commit](/how-to/git/recover-lost-commit)

## 历史整理

- [Git 如何修改 commit message](/how-to/git/change-commit-message)
- [Git 如何合并多个 commit](/how-to/git/squash-commits)
- [Git 冲突怎么解决](/how-to/git/resolve-conflict)

## 远程仓库

- [Git 如何修改 remote](/how-to/git/change-remote-url)
- [Git 如何删除远程分支](/how-to/git/delete-remote-branch)
- [Git 如何重命名分支](/how-to/git/rename-branch)

## 相关内容

- [开发问题库](/how-to/)
- [Git Reference](/reference/git/)
- [Git 教程](/git/)
