GitHub for Windows does not see changes in repository

I have created a repository using GitHub for Windows (GfW) and added 3 commits and synced using aforementioned. Commits were visible on GitHub webpage and in my app. Then my brother forked my project to start collaborating with me. He successfully cloned it using GfW.

Then I made changes on my machine and pushed using "sync" button. Changes appeared on webpage and in my history, but my brother can't see them in his GfW. Even after pressing "sync".

What mistake are we making? I have also added him to collaborators in my project's settings, though it did not change anything. I guess I have misunderstood some basic principles.

Jon Skeet
people
quotationmark

Well, there are four repositories involved here:

  • Your github one
  • Your local clone of your github project
  • Your brother's github fork
  • Your brother's local clone of his fork

I haven't used GfW myself for a little while, but I suspect that Sync is only synchronizing between the last two projects listed above. I don't know whether there's GUI support for it or not, but the documentation on syncing a fork may be useful to you.

I suspect there isn't support for syncing a fork with the original though, given this documentation:

GitHub for Windows does not support multiple Git remotes and it will only work with the origin remote. If you wish to push & pull to other remotes, we suggest you use the command line client that is included with the application.

Your brother will effectively have two remotes: his fork (typically named "origin") and your original project (typically named "upstream").

people

See more on this question at Stackoverflow