git如何查看当前分支是从哪个分支拉的?

怎么查看现在这个分支是从哪个分支checkout的 求大神指教

git log --oneline --graph --decorate

在git bash命令窗口中执行

git reflog --date=local | grep 当前分支名

img

git branch

git branch -vv

git show-branch 可以看出分支上的递交状况
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all

git log --graph 会出现一个commit的图

git status 这条命令本意是查看当前文件状态的,但也会在第一行打印出当前分支是什么,

https://stackoverflow.com/questions/15806448/git-how-to-find-out-on-which-branch-a-tag-is

git branch -a --contains tags/

自己实测可用
git 版本
git version 2.21.0 (Apple Git-122.2)

一楼的可以用,这个指令真是神指令,某些楼能不能把问题看清楚问题再回答?
另外我用的是
git log --graph --decorate --oneline --all

git branch -vva

先切换到本分支,git reflog --date=local | grep 分支名称
 试过可以的