How To Unstage A Commit
How To Unstage A Commit . You can use git reset to set the current branch to the preceding commit, i.e. If you're using a git version older than 2.23, you will have to use reset because restore is quite a new feature in git. Handle those mishaps on your local repo like a champ Manage Your Code from openclassrooms.com To undo multiple commits that are in a remote repository, you can use a cool command called rebase, which allows you to interactively pick what commits you want to keep or discard. You can of course also remove multiple files at once from the staging area: If you want to undo the last commit and unstage all files then you can use the below command.