carvalhoedsonn / fix-your-commit

I created this repository in order to help devs who are having problems with their commit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix your wrong commit

Did you make a wrong commit, did you miss a word or didn't like the commit? 😥

Calm down, you can solve it! 😅

Error and solutions:

Wrote the message of the last commit wrong? Use this:

git commit --amend -m "New message"

Did you commit and forget about a change or add a file? Use this:

git add <archive>

git commit --amend --no-edit

Did you do everything wrong in the last commit and need to undo it, then redo it? Use this:

git reset --soft HEAD-1

Did you commit and give up the change and want to throw it away? Use this:

git reset --hard HEAD-1

Author of this Readme:


Edson Jorge

About

I created this repository in order to help devs who are having problems with their commit.

License:MIT License