forked from iicd/git-learner
220 B
220 B
2.5 Git Checkout
2.5.1 HEAD reset = checkout
查看当前的branch
git branch -v
checkout到commit的父亲,使得head指针指向父提交,而不是branch
git checkout <commit>^