git – How to ignore only one file without extension?

I wish to ignore only one file without extension.
I am able to ignore some files by names, but they all have extensions. Unfortunately I work with some files without extension that should not be ignored; thus, I can not use the solution provided here How do I add files without dots in them (all extension-less files) to the gitignore file?.

Does anybody know a way to achieve this?
Any help is appreciated.

  • Errors with cabal in Windows with latest Haskell Platform (2014.2.0.0)
  • Change remote repository credentials (authentication) on Intellij IDEA 14
  • Backup only “local” commits / objects in git repository
  • gitolite allows unauthorized user
  • What tools exist for simple one-off sharing of a git repo?
  • eclipse is always complaining about remote git does not supoort smart http push
  • How to cherry-pick the last sha from another branch in Git with 1 command?
  • Git merge deleting code that should stay
  • How do I organize my Git repo
  • Adding a remote do we call the remote name origin or upstream?
  • Deploy a specific git branch via capistrano to a staging server
  • Git won't let me switch branches as “changes to the following files would be overwritten”, however, git-status shows no changes
  • One Solution collect form web for “git – How to ignore only one file without extension?”

    You might be making this more complex than it has to be. This could possibly be due to the answer you cited which ignores all extensionless files. To ignore a file without an extension does not appear to be very different than ignoring a file with an extension. To ignore your single file without an extension add this to your .gitignore:


    If the file had an extension, you would just add this:

    Git Baby is a git and github fan, let's start git clone.