Git doesn’t show how many commits ahead of origin I am, and I want it to

git branch --set-upstream local origin/remote

local and remote are the names of your local resp. remote branches.

In Git version 1.8 and later, it’s even easier. Make sure you’re on the local branch, and then:

git branch --set-upstream-to origin/remote

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)