0

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.

enter image description here

enter image description here

G Ajeet
  • 27
  • 5

1 Answers1

1

Looks like there's a bug in .gitignore handling in the just-released Git 2.34.0. The patch (2.34.1) should be out any day now.

torek
  • 448,244
  • 59
  • 642
  • 775