Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.git directory isn't ignored #55

Open
StarpTech opened this issue Mar 8, 2019 · 2 comments
Open

.git directory isn't ignored #55

StarpTech opened this issue Mar 8, 2019 · 2 comments

Comments

@StarpTech
Copy link

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 StarpTech changed the title .git isn't ignored .git directory isn't ignored Mar 8, 2019
@basickarl
Copy link

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)

@jacobedawson
Copy link

jacobedawson commented Sep 5, 2019

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants