git change commit message of old commit
git commit --amend -m "New commit message"
git change commit message of old commit
git commit --amend -m "New commit message"
git command change to previous comit
git revert --no-commit 0766c053..HEAD
git commit
If you really do want to have individual commits
(instead of reverting everything with one big commit),
then you can pass --no-edit instead of --no-commit,
so that you don't have to edit a commit
message for each reversion. – user456814
git command change to previous comit
git checkout <commit_id>
git checkout -b <new branch> <commit_id>
git checkout HEAD~X // x is the number of commits t go back
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us