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

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

!/bin/

after compilation, it overrides as follows

!/bin/
/bin/

Upvotes: 2

Views: 103

Answers (2)

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

Upvotes: 2

VonC
VonC

Reputation: 1327784

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.

Upvotes: 1

Related Questions