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.

fatal: cannot use ~/.gitignore_global as an exclude file

See original GitHub issue

Description

After a recent update, when I look at my repository, I get a popup that says fatal: cannot use ~/.gitignore_global as an exclude file (except with the full path). Sometimes it pops up twice. After I dismiss it, The application does not show pending changes in the “changes” view.

Version

GitHub Desktop version: 1.0.11

OS version: Microsoft Windows [Version 6.1.7601]

Steps to Reproduce

This happened automatically as soon as I switched to the Github Desktop application.

Expected behavior: I expected it to respect the setting in my .gitignore_global file

Actual behavior: I got a popup saying it couldn’t use that file.

Reproduces how often: 100%

Logs

Additional Information

This was working in the previous version (unknown what that number was, sorry.) It did ignore the things I had listed to ignore in ~/.gitignore_global.

My .gitconfig contains this line: excludesfile = ~/.gitignore_global My .gitconfig and .gitignore_global both have LF line endings. My .gitconfig and .gitignore_global are both NTFS symlinks to another directory.

Command line git does not have this error when run (using the command from the logs.)

$ git status --untracked-files=all --branch --porcelain=2 -z
# branch.oid 86bf7aa1aa287a76555746d7e0d72e14f08ac981# branch.head master

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
karnavpargicommented, Jan 30, 2018

i just used this git config --global core.excludesfile ~/.gitignore and after that this error occurs fatal: cannot use /Users/indianic/ as an exclude file please help some one what i do to get old core.excludesfile file

Thank you in advance

0reactions
shiftkeycommented, Jan 30, 2018

@karnavkumar please open a new issue with details about your setup

Read more comments on GitHub >

github_iconTop Results From Across the Web

2 Answers - 2 - Stack Overflow
gitignore as the list of excluded files. To properly ignore your .idea/ directory, open a file called .gitignore in your root project directory ......
Read more >
After update to 2.6.3.0 "Fatal: cannot use . as an exclude file"
I keep getting this error when opening any repository after updating to the newest version of Sourcetree (on Win 10):.
Read more >
Create a Global GitIgnore Step-by-Step for MacOS and Windows
Open Git Bash. Navigate to the root folder of your user profile usually at C:\Users\{myusername}\ and create a .gitignore_global file. Then run
Read more >
What is Gitignore and How to Add it to Your Repo
The .gitignore file is a text file that tells Git which files or folders to ignore in a project. A local .gitignore file...
Read more >
Ignoring in Git: How To Use .gitignore Files - BMC Software
The global ignore file can go anywhere. Usually it is kept in the User's home directory. Create the file: Copy. touch ~/.gitignore_global.
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