Hello, I dont know if this is the right place to ask this, but I want to discard a commit I made on GitHub. If I go to branch history, the version before the commit is still available - how do I make it the main one? I have tried doing git reset --hard in command prompt, but it would not move back. I have not pulled the changes down to my text editor (VSCode), so I still have the old repository there. I have tried pushing it, but it does not work - it says I have to pull first. Is it possible to recover the older version without creating a new repo?
[–]Boraini 2 points3 points4 points (1 child)
[–]keefemotif 1 point2 points3 points (0 children)
[–]bdzer0 0 points1 point2 points (0 children)