Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 570
Shiny Avatar asked Jul 09 '16 05:07

Shiny


People also ask

How do I refresh a GitHub desktop branch?

In GitHub Desktop, use the Current Branch drop-down, and select the local branch you want to update. To pull any commits from the remote branch, click Pull origin or Pull origin with rebase. Resolve any merge conflicts in your preferred way, using a text editor, the command line, or another tool.

How do you sync changes in GitHub?

On GitHub, navigate to the main page of the forked repository that you want to sync with the upstream repository. Select the Sync fork dropdown. Review the details about the commits from the upstream repository, then click Update branch.


1 Answers

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.

like image 194
VonC Avatar answered Sep 28 '22 10:09

VonC