question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I recently created a git repository from a pre-existing projects and realized that we have no way of ignoring folders.

image

In this scenario I’d like to see the Ignore menu item become a submenu with this hierarchy

+--------------------+
| Discard changes... | +----------------------------+
| Ignore             +-> node_modules               |
+--------------------- | node_modules/.bin          |
                       | node_modules/.bin/electron |
                       +----------------------------+

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:13
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
donokudacommented, Apr 17, 2017

oh, this would be so nice to have. What are your thoughts on either making the file itself the top choice and list all the parent folders below?

+--------------------+
| Discard changes... | +----------------------------+
| Ignore             +-> node_modules/.bin/electron |
+--------------------| +----------------------------+
                       | node_modules               |
                       | node_modules/.bin          |
                       +----------------------------+

Alternatively, we could have an “Ignore file” option and then have the folders in an “Ignore directory…” menu, which I’m leaning towards.

There are a couple of other things to consider like the ordering of the folders (should it be descending or ascending) and how the experience could be less than ideal once we hit a certain number of nested folders.

0reactions
stevewardcommented, Jan 4, 2022
Read more comments on GitHub >

github_iconTop 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 directories in Git repositories on Windows
Create a file named .gitignore in your project's directory. Ignore directories by entering the directory name into the file (with a slash appended):...
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 >
gitignore Documentation - Git
gitignore - Specifies intentionally untracked files to ignore ... Git doesn't list excluded directories for performance reasons, so any patterns on ...
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 folder...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found