Redundant entries added to .gitignore when user selects "Ignore" in the Changes tab menu
See original GitHub issueDescription
From the Changes tab, if the user selects an item (file, directory, etc.) > right clicks > “Ignore”, then a duplicate entry is added to the .gitignore
file.
Example:
If the file .DS_Store
is marked “Ignore” for, say, 100 times, then 100 copies of .DS_Store
entry will be added to the .gitignore
file, regardless if it already exists.
Version
GitHub Desktop version: 0.8.0
OS version: OS X El Capitan, version 10.11.6
Steps to Reproduce
- [First step]
- [Second step]
- [and so on]
Expected behavior: Ignore the ignore; check if the file already exists. If it does already exist, ignore the user action (silently or with a message to the user).
Actual behavior: Infinite duplicates of the already-existing .gitignore
entry can be created regardless of existing matching entries.
Reproduces how often: Always (not intermittent).
Logs
Additional Information
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:16 (6 by maintainers)
Top Results From Across the Web
.gitignore is ignored by Git - Stack Overflow
WARNING: First commit or stash your current changes, or you will lose them. Then run the following commands from the top folder of...
Read more >Ignore files in your Git repo - Azure - Microsoft Learn
The Ignore this local item option adds a new entry to the .gitignore file, and removes the selected file from the list of...
Read more >Ignoring in Git: How To Use .gitignore Files - BMC Software
When making commits to any Git repository, you'll choose the files you want to stage and then you'll commit them.
Read more >Version Control with Git: Ignoring Things
You will notice a new change has been staged for the repository because the Git ignore file did not exist before. The hidden...
Read more >.gitignore file - ignoring files in Git | Atlassian Git Tutorial
.gitignore · If you want to ignore a file that you've committed in the past, you'll need to delete the file from your...
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
Pretty annoying issue, hope it gets resolved in the next few decades already. Wasted so much time on this already. I thought Github Desktop will make things easier, in fact it does not if you do not follow a workflow they want you to follow ^^
Bump! seems this has been an issue since 2017, is this still being investigated?