I am trying to maintain my c++ program files by pushing them to GitHub. So I only push the files with the extension CPP, so that I don't include the binaries as well.
Here are my gitignore file contents
# Ignore all
*
# Unignore all with extensions
!*.*
# Unignore all dirs
!*/
### Above combination will ignore all files without extension ###
.vscode/
which I got to know from here gitignore binary files that have no extension
which has been working fine for a long time. I am using so Linux the binaries are created with no extension. But now it doesn't ignore the binaries.