Question

First of all, it was working fine. I can push and I can pull.

I do remember my previous push was rejected even though I have done the pull.

And also I accidentally started a rebase and I pushed with "-f" to ignore the "remote reject"

Then I cancelled the rebase and started a normal push again. Although it was accepted by the remote, somehow others are not seeing my changes as if I were in a different branch.

I have checked multiple times that I am in the same branch and my remote url is correct.

So could any one tell me what happened to my git repo and suggest any troubleshooting process?

Thanks

Était-ce utile?

La solution

Some ideas:

  1. Try git branch to see which branches you have in existence and what your current branch is.
  2. Try git push --all --dry-run to see what needs to be pushed out to your remote. This will show you, for all branches, what it would push if you ran git push --all, and where to. Unless you specify --all, only the current branch will be pushed. This may be your problem -- you might still be in detached-head mode from the rebase, which you might not have correctly canceled (correctly using git rebase --abort). You might get an error here and need to give -f, which is safe as long as you use --dry-run.
  3. Assuming your remote is on GitHub or Bitbucket, go look on that site at your remote and see what actually is pushed there.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top