How do I determine what branch/tag I have checked out in git?

前端 未结 4 1969
感动是毒
感动是毒 2021-01-14 12:01

I clone my source using git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git w/. Then I specify a specific branch/tag by doing git checkout

4条回答
  •  天命终不由人
    2021-01-14 12:27

    The current branch is marked with a * in the output of git branch. Example:

    $ git branch
      branch1
    * branch2
      master
    

提交回复
热议问题