Search code examples
gitgithubgithub-for-windows

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

  • 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.