I created a branch from a master branch which has 2000+ commits. More precisely, I first pulled the master branch to my machine, made some modifications, created a new local branch and push it remotely.
For some reason, the number of commits has been transferred to my new branch. I'd like to reset this number to zero or, even better, to the number of commits I've actually made on the new branch. Any ideas?
You need to start a new orphan branch so you can get rid of the previous history.