Unignoring a file in .gitignore is not working. I want GIT to unignore bin directory?

106 Views Asked by At

I have tried the following solution but .gitignore overriding the unignore line.

!/bin/

after compilation, it overrides as follows

!/bin/
/bin/
2

There are 2 best solutions below

0
On BEST ANSWER

Found these settings on microfocus Enterprise Developer :

Windows -> Preferences -> Team - Git -> Projects -> "Automatically ignore derived resources by adding them to .gitignore"

After removing or unchecking the line, it stopped updating /bin/ line on gitignore

1
On

If the microfocus compiler is somehow changing the main .gitignore, see if adding a .gitignore in bin/ itself would help, with the content

!./

The alternative would be to wrap the compiler call with a script which would:

  • save the .gitignore content
  • call the compiler
  • then restore the .gitignore content.