'Github Desktop - Not showing changes

Basically I changed a few files in Notepad++ but it wont show up in Github for Windows.

gif

I have tried reinstalling, Restarting pc and constantly re-cloning into different parts on my pc.

Nothing seems to do anything



Solution 1:[1]

Check in command line if you have a .gitignore rule that ignores those changes

cd /path/to/my/repo
git check-ignore -v -- afile

It can be a local .gitignore, or a global one.

The other possibility is if you are in a detached HEAD.
Check the output of git branch.

Finally, check again how to work with a local repo with GitHub Desktop: the comments below show that:

git status
git add . 
git commit -m "add changes"

All this work as expected from command line.

The OP Shiny adds in the comments:

Seems like a bug I need to report to Github, But basically I set my username of my PC to "{Shiny}" and it seems if "{}" is in the path it glitches it out.

That is why I always recommend starting with simpler path: C:\git\myrepo, just to validate that it works there.

Solution 2:[2]

save file in vscode , then try to see the changes in the github desktop , there u might be able to the changes . Also make sure to reinstall git and git hub if the problem still persists .

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Brandon Essler
Solution 2 Agamjot Singh Reen