2

I recently re-installed my computer, and now I'm encountering problems with github for windows (I'll be using GFW in the rest of this text). it say's that my local repo is in sync, but even if I change things, delete files, or add files it keeps saying that it is in sync.

It does check if I make changes on a different computer and push them. but syncing then won't work, so I went to shell

there I can commit (shows in GFW that there are commits ready to be pushed), sync button in GFW still doesn't work (showing that there are problems, and I should continue in git shell). When I commit in shell says that there are changes , insertions, and deletions

Then when I want to push it says Everything up-to-date.

Anyone got any clue what is going wrong?

nulltoken
  • 64,429
  • 20
  • 138
  • 130
Kiwi
  • 2,713
  • 7
  • 44
  • 82

1 Answers1

0

Check if you are actually on a branch: are your commits made on a branch, or on a "detached HEAD"? (more on this at "cannot push to GitHub: everything up-to-date").

A simple git branch can show you the active branch. If there are none, that would explain why the "sync" button is inactive. You need to fast-forward your branch to that detached HEAD.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I'm on a normal branch, but the weirdesd part is that the git shell is working fine, the program just doesn't register changes, and is having problems pushing / pulling / switching branches / ... – Kiwi Oct 02 '12 at 12:22