[Solved] How do I make github.com exclude my rebase linecount?


Now that you shared your repo I can confirm the problem is not with the line counter but with your repo… You have duplicated commits in the history!

enter image description hereenter image description here

Don’t know how you ended up like that, but you definitely messed up your history tree. 😉

How you may fix it

Disclaimer: execute at your own risk. Please, make sure you understand each of the commands bellow before executing them. Always make a backup of your repo before in case anything goes wrong.

git checkout master
git reset --hard c7993946
git cherry-pick 43630629
git cherry-pick 1c4a6df^..27507cca
git push --force
git push origin :VhatAmI-Alphabranch
git branch -D VhatAmI-Alphabranch

5

solved How do I make github.com exclude my rebase linecount?