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.

github desktop not obeying gitignore_global

See original GitHub issue

Description

Both GitHub Desktop and GitHub Desktop Beta are not obeying the exclusions from .gitignore_global

Version

  • GitHub Desktop: 223
  • GitHub Desktop Beta: 1.1.1
  • Operating system: OSX 10.13.4

Steps to Reproduce

If you create this file and associate it via git config --global core.excludesfile ~/.gitignore_global, then add exclusions, and check to see if exclusions are obeyed, they are not.

Expected Behavior

Exclusions from global file should be obeyed

Actual Behavior

They are not

Additional Information

I made sure both my system git and git in the Application resource were configured.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
thehesiodcommented, May 3, 2018

the rule only lights up when the path starts with a matching rule

ahh, that explains it, totally my fault then, sorry for the waste of time. I think I was confused because pycharm lists it separately in untracked files so I was ignoring them.

yay, this helps me alot as those folders for me had tons of files 😃

1reaction
shiftkeycommented, Apr 19, 2018

@thehesiod thanks for the report. I think there’s enough in here to see if we can reproduce the behaviour on our end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Global .gitignore files are being ignored · Issue #6479 - GitHub
When I open my repository in GitHub Desktop, the globally ignored editor folder will not be listed in the changes tab. Actual Behavior....
Read more >
Global gitignore - Discover gists · GitHub
gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should...
Read more >
Ignoring files - GitHub Docs
Configuring ignored files for all repositories on your computer · Open TerminalTerminalGit Bash. · Configure Git to use the exclude file ~/.gitignore_global for ......
Read more >
Windows/WSL global gitignore not used · Issue #5453 - GitHub
gitignore_global . It seems that GitHub Desktop for Windows is not respecting the rules in this file. Please let me know if I...
Read more >
How to fix "gitignore not working" issue - Discover gists · GitHub
Commit all the changes to git. Exclude the folder/files you don't want commit, in my case node_modules · Execute the following command to...
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