使用git checkout v3.1.0回到这个 tag 位置打了一个安装包,但是应该怎么回去呢?现在用 git status 查看,显示HEAD detached at v3.1.0,应该怎么回到git checkout v3.1.0之前的状态呢?
git branch can list all branches, and then git checkout master can return to the corresponding branch
git tag can list all tags, and then git checkout v3.0 can cut the corresponding tags
Restore the previous version through git log复制commit后执行git reset 23edd……
git log
commit
git reset 23edd……
Switch branch executiongit checkout
git checkout
git branch can list all branches, and then git checkout master can return to the corresponding branch
git tag can list all tags, and then git checkout v3.0 can cut the corresponding tags
Restore the previous version through
git log
复制commit
后执行git reset 23edd……
Switch branch execution
git checkout