Earlier I pushed some big files to git branch which increased the repository size. Later I removed those redundant files from that branch using,
git rm big_file
git commit -m 'rm bg file'
git push origin branch-name
But the file size of git repository remained unchanged.
Then I tried using this method to clear commit history but it didn't worked, the repo size is still the same.