ignore folders and/or ignore .git folder by default
See original GitHub issueIf I start servor at the root of my git repo a refresh is triggered whenever I run git status
, git add
, git commit
etc.
It’s not a huge issue, but there’s no way currently of specifying folders for the watch to ignore. It might be nice to include such an option, it might also make sense to ignore some common folders like .git
or node_modules
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
.gitignore File – How to Ignore Files and Folders in Git
Inside .gitignore , you can tell Git to ignore only a single file or a single folder by mentioning the name or pattern...
Read more >Ignoring Files and Directories in Git (.gitignore) - Linuxize
The .gitignore file allows you to exclude files from being checked into the repository. It contains globbing patterns that describe which ...
Read more >Git default ignore Configure directory - Stack Overflow
Have a look in the folder itself for a file called .gitignore. Putting a .gitignore file in a directory is one way to...
Read more >Ignoring Specific Files, Folders and Patterns with the .gitignore ...
I'll type "less .gitignore" and press Enter. (less is a terminal application used to read text files.) There are two sections here by...
Read more >How to Ignore Git Folders and Directories .gitignore - YouTube
Here's a quick overview of how to use the . gitignore file to ignore Git folders and directories.There's no big trick to ignoring...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Doesn’t look like this is causing anyone any trouble so I am going to close here!
In my experience build steps will often move the index.html into the dist folder too… but I get your point. The reason I am pushing back on this, is that it is a very awkward option to input via a CLI. It would be much more suited to having in a config file like a
.babelrc
ornetlify.toml
which I am not massively opposed to but is a different conversation.