I mistakenly did a git reset --hard
on my repo thinking it behaved differently than it does, so then I did git reflogs
and another git reset
to restore the changes I accidentally deleted. Now my local repo is fine but for some reason when I push to the server, not all of my changes appear, even though I get a message saying that everything is up to date. How do I get these changes to the server? Right now I'm copying the entire repo with my changes into a brand new branch but there's got to be a better way...
Asked
Active
Viewed 50 times
0
-
What does it show on `git status`? Does it show that your local is ahead of your remote? – Jeeter Jul 19 '19 at 15:16
-
@Jeeter, even better `git status --ignored`. – 0andriy Jul 19 '19 at 15:39
-
@0andriy Good point, I didn't consider that OP could have accidentally ignored it – Jeeter Jul 19 '19 at 15:40
1 Answers
0
What I wound up doing is taking my local changes, copying all the files that had been changed, making a new branch, and pasting the changes into the new branch and pushing that branch to the server.

ekolis
- 6,270
- 12
- 50
- 101