Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git does not recognize exe file

I'd like to upload NuGet.exe to github but all exe files are not listed to my local repository.

I did upload NuGet.exe file about two weeks ago at another project repo, but now I cannot upload any exe file at all. There is no global .gitignore that I specially defined.

below code is my .gitignore file. what am I missing?

# Build Folders (you can keep bin if you'd like, to store dlls and pdbs) [Bb]in/ [Oo]bj/  # mstest test results TestResults  ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons.  # User-specific files *.suo *.user *.sln.docstates  # Build results [Dd]ebug/ [Rr]elease/ x64/ *_i.c *_p.c *.ilk *.meta *.obj *.pch *.pdb *.pgc *.pgd *.rsp *.sbr *.tlb *.tli *.tlh *.tmp *.log *.vspscc *.vssscc .builds  # Visual C++ cache files ipch/ *.aps *.ncb *.opensdf *.sdf  # Visual Studio profiler *.psess *.vsp *.vspx  # Guidance Automation Toolkit *.gpState  # ReSharper is a .NET coding add-in _ReSharper*  # NCrunch *.ncrunch* .*crunch*.local.xml  # Installshield output folder  [Ee]xpress  # DocProject is a documentation generator add-in DocProject/buildhelp/ DocProject/Help/*.HxT DocProject/Help/*.HxC DocProject/Help/*.hhc DocProject/Help/*.hhk DocProject/Help/*.hhp DocProject/Help/Html2 DocProject/Help/html  # Click-Once directory publish  # Publish Web Output *.Publish.xml  # NuGet Packages Directory packages  # Windows Azure Build Output csx *.build.csdef  # Windows Store app package directory AppPackages/  # Others [Bb]in [Oo]bj sql TestResults [Tt]est[Rr]esult* *.Cache ClientBin [Ss]tyle[Cc]op.* ~$* *.dbmdl Generated_Code #added for RIA/Silverlight projects  # Backup & report files from converting an old project file to a newer # Visual Studio version. Backup files are not needed, because we have git ;-) _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML  # Windows-specific files Thumbs.db desktop.ini # Mac-specific things (thanks to Michael Aaron Safyan) .DS_Store 

-- EDIT --

same files under .nuget/ directory .config and .targets files are well treated. I can check git ls-files --others -i --exclude-standard gives NuGet.exe is ignored, but I don't know which rule makes it.

like image 556
Youngjae Avatar asked Mar 08 '14 05:03

Youngjae


People also ask

Why .exe file is not running?

Corrupt registry settings or some third-party product (or virus) can change the default configuration for running EXE files. It may lead to failed operation when you try to run EXE files.

Can I put EXE on GitHub?

You can use an existing tag, or let releases create the tag when it's published. You can also attach binary assets (such as compiled executables, minified scripts, documentation) to a release. Once published, the release details and assets are available to anyone that can view the repository.

How do I run an exe file in bash?

To run a Windows program, enter the path to the program's .exe file in the Bash shell. Remember that your Windows C: drive is available at /mnt/c in Bash. The Bash environment is also case-sensitive, so you have to specify the correct capitalization.

How do I enable an exe file?

When you type the name of the EXE file you want to open, Windows displays a list of the files it finds. Double-click on the EXE filename to open it. The program starts and displays its own window. Alternatively, right-click the EXE file name and select "Open" from the pop-up menu to start the program.


1 Answers

First, you can check if a file is locally ignored ion your repo with git check-ignore:

git check-ignore -v -- yourFile 

Second, you can force to add that file (bypassing any ignore rule):

git add -f yourFile 
like image 153
VonC Avatar answered Sep 30 '22 07:09

VonC