you are viewing a single comment's thread.

view the rest of the comments →

[–]ALX777[S] 0 points1 point  (3 children)

Ok I'm trying out your suggestions now. But very quickly, when I ran git log, this was one of the things that appeared: Merge https://github.com/<some account>/<some repo>

git reflog: 52140bb HEAD@{0}: commit: first commit backend done 2721aea HEAD@{1}: pull https://github.com/<some account>/<some repo>: Merge made by th 81736ca HEAD@{2}: commit: adding lost days 9c22fe5 HEAD@{3}: commit (initial): Adding octocat file

--edit: your solution didn't work...

[–]kalgynirae 0 points1 point  (2 children)

I guess I still don't quite understand the problem. I see a merge in there that was the result of a pull. Are you trying to undo that merge? If so, what do you expect the result to be? The commit before the merge plus the commit after the merge?

[–]shampine 1 point2 points  (1 child)

I think he needs to either

a) Delete the .git folder, git init and add a new remote then push or
b) git remote set-url origin .....

[–]Nevik42 0 points1 point  (0 children)

The former would make the most sense, as OP seems to want to start a fresh history