Skip to content

Commit

Permalink
adding new post
Browse files Browse the repository at this point in the history
  • Loading branch information
MAInformatico committed Jul 18, 2022
1 parent 2cbd3df commit a517c08
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions _posts/2022-7-18-GitRevert.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ This command allow us to remove our last commit, in case of our commit has been

* If we have not commited our changes
You can revert the change using this command:
`git reset --soft HEAD~1` (if you wish to keep your changes)

or

`git reset --soft HEAD~1` (if you do not want to keep your changes)
`git reset --soft HEAD~1` (if you wish to keep your changes) or `git reset --soft HEAD~1` (if you do not want to keep your changes)

I hope these commands can be helpfull for you, specially on those moments that we feel stressed by a mistake.

Expand Down

0 comments on commit a517c08

Please sign in to comment.