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.

Redundant entries added to .gitignore when user selects "Ignore" in the Changes tab menu

See original GitHub issue

Description

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

  1. [First step]
  2. [Second step]
  3. [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:open
  • Created 6 years ago
  • Reactions:3
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
WaGi-Codingcommented, Oct 3, 2020

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 ^^

7reactions
vaidasmacommented, Jan 12, 2021

Bump! seems this has been an issue since 2017, is this still being investigated?

Read more comments on GitHub >

github_iconTop 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 >

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