Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+13 votes
asked in CSC305 Fall 2022 by (2.5k points)

2 Answers

+7 votes
 
Best answer

https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/

This article on GitHub explains it pretty well I think. There's a few different ways depending on where you need to undo things (locally or GitHub repo), and how many commits you want to undo.

answered by (2.5k points)
selected by
+5 votes

I believe that if you have been using GitHub that there are previous versions of your code in the GitHubs repository (either shared or local repo) so then if you do have to undo/review some of your changes, you could always go back to a previous version and start from there.

answered by (2.3k points)
...