browser-refresh icon indicating copy to clipboard operation
browser-refresh copied to clipboard

.git directory isn't ignored

Open StarpTech opened this issue 6 years ago • 2 comments

The default ignore options doesn't ignore changes in the .git directory

[browser-refresh] Server is ready. Page refresh triggered over WebSockets connection.
[browser-refresh] Triggering refresh of client pages...
[browser-refresh] Refresh triggered
[browser-refresh] File has been changed: .git/FETCH_HEAD
[browser-refresh] Restarting app...
[browser-refresh] App started (pid: 23543)
Server started! Try it out:

StarpTech avatar Mar 08 '19 20:03 StarpTech

I'm getting the same issue:

[browser-refresh] File has been changed: .git/index.lock
[browser-refresh] Restarting app...
[browser-refresh] File has been changed: .git/index
[browser-refresh] App started (pid: 26187)

basickarl avatar Apr 04 '19 06:04 basickarl

@StarpTech @basickarl I was finding this issue as well (on an inherited legacy project) - since browser-refresh was using the .gitignore file to build a list of ignore rules I just added

.git/index.lock

to my .gitignore (that is more likely to help @basickarl ). Another way to resolve this would be to create the .browser-refresh-ignore file and just put your ignore rules in there.

That solved it for me, if that doesn't work maybe it's a version issue (I'm on 1.6.0)

jacobedawson avatar Sep 05 '19 15:09 jacobedawson