I just did a “git add .” and “git commit” and want to undo that (I haven’t pushed the new repo anywhere yet). How?

(You): I just did a “git add .” and “git commit” and want to undo that (I haven’t pushed the new repo anywhere yet). How?

(JT): Use the git R undone command. (My apologies to The Cable Guy).

(You): I haven’t seen that movie, but I’s gissing that thar be a joke?

———————-

(Alexander): I think git repos are local dirs until you push the repository somewhere, so you can just delete the .git directory and start over

[Vark assigned category: Repo, more details]

This entry was posted in Barry After Vark. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *