You just realized that you have commited a backup file: main.cpp~
main.cpp~
Backup files should not be commited, let's correct that mistake :
rm
git add -A