zl程序教程

您现在的位置是:首页 >  工具

当前栏目

git亲测命令

Git命令 亲测
2023-09-27 14:20:23 时间

一、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 config --list

  

三、查看历史记录

  git log

  

  git log --stat

  

  git log --shortstat

  

   

  git reflog

  

 

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