一、Git新建本地分支与远程分支关联问题

  git checkout -b branch_name origin/branch_name

  或者

  git branch --set-upstream branch_name origin/branch_name 

  或者

  git branch branch_name 

  git branch --set-upstream-to=origin/branch_name branch_name

二、查看本地分支所关联的远程分支

  git branch -vv

    git亲测命令

  git config --list

  git亲测命令

三、查看历史记录

  git log

  git亲测命令

  git log --stat

  git亲测命令

  git log --shortstat

  git亲测命令

   

  git reflog

  git亲测命令

 

  如何在 Git 里撤销(几乎)任何操作

相关文章:

  • 2021-06-01
  • 2021-12-20
  • 2021-11-02
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2021-05-20
  • 2022-03-06
  • 2021-07-24
  • 2021-07-29
  • 2022-12-23
  • 2021-09-18
相关资源
相似解决方案