Home > Enterprise >  Git not ignoring the files without extension
Git not ignoring the files without extension

Time:11-23

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 enter image description here

enter image description here

CodePudding user response:

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.

  • Related