Many time I have to do a force push(Deleting a commit with
git reset HEAD~ no reverting.) to keep my history clean but after doing a force push the profile.
Like actual commit in a repo is 1 on 14 NOV.
But in profile it show 2 commits in acticity also(also it shows in activity that i commited twice).
What i actually did.
- Commit and push a commit on remote.
- Reset a commit local (not revert.)
- Commit new change and FORCE PUSH by
git push --force
So in no error condition it should show only one commit as listed in repo but it still shows extra commit that i reset and pushed.
This happens me most of time in all repos