I have little problem. I had to format my hdd and with it my git confiruration. And now when I am cloning git repository, committing and checking git status I have:
$ git status
# On branch master
nothing to commit (working directory clean)
but I have no information about how many commits I am ahead of master. Can someone tell me how to enable this option? I reacall that I should modify my config but I am unable to find what should I change.
I think this is no option.
When you commit something to your local repo its on your local PC and you are one commit ahead from your remote branch. So first when you push your commit to the master you have the same state.
I think when you haven’t pushed your commit and formated your hdd your changes are lost.
Git doesn't show how many commits ahead of origin I am, and I want it to
Perhaps this could be another solution when you have copied the whole .git directory.