Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git - info on tracking branch

I would like to know which is the git command line giving informations about tracking branch ?

I have an integration branch which track the origin/integration (git branch --track integration origin/integration) but i want to be sure and check the connection between the local tracking branch and the remote tracking branch...

I know the git remote show origin. But if i'm not online...?

Thanks by advance,

like image 398
user1204359 Avatar asked Mar 06 '26 07:03

user1204359


1 Answers

You can do git branch -a to see that. Or just do git config -e to see the config, which the source of truth.

And also, git remote show origin -n uses cached information.

like image 59
manojlds Avatar answered Mar 07 '26 21:03

manojlds



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!