search

Home  >  Q&A  >  body text

objective-c - How to go back after git checkout tagName

Use git checkout v3.1.0 to return to this tag location and create an installation package, but how should I go back?
Now use git status to view it, and it shows HEAD detached at v3.1.0. How should I go back to git checkout v3? .What about the status before 1.0?

淡淡烟草味淡淡烟草味2854 days ago702

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-02 09:28:30

    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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:28:30

    • Restore the previous version through git log复制commit后执行git reset 23edd……

    • Switch branch executiongit checkout

    reply
    0
  • Cancelreply