1
0
forked from iicd/git-learner
git-learner/notes/2.5_git_checkout.md

17 lines
220 B
Markdown
Raw Normal View History

2024-08-16 10:39:20 +02:00
## 2.5 Git Checkout
### 2.5.1 HEAD reset = checkout
查看当前的branch
```bash
git branch -v
```
checkout到commit的父亲使得head指针指向父提交而不是branch
```bash
git checkout <commit>^
```