youngfan007 发表于 2018-1-16 06:24:07

git checkout简介 [转]

  When a commit is created in this state, the branch is updated to refer to the new commit. Specifically, git commit creates a new commit d, whose parent is commit c, and then updates branch master to refer to new commit d. HEAD still refers to branch master and so indirectly now refers to commit d:
  $ edit; git add; git commit
  HEAD (refers to branch 'master')
  |
  v
  a---b---c---dbranch 'master'(refers to commit 'd')
  ^
  |
  tag 'v2.0'(refers to commit 'b')
页: [1]
查看完整版本: git checkout简介 [转]