what you need to do is go to your repository and type this in your command line:
git commit --amend
Then in your text editor you can put the new commit message.
Good Luck And Happy Hacking!!!
git commit --amend
git push -f <remote> <branch>
git checkout my_branch_1
git branch -m my_new_name_branch_2
git reset --hard HEAD~1
sudo apt install git
git config --global user.email "your_email@example.com"
git config --global user.name "Your Name"
git init
git add
git add -A
git commit
git commit -m "login fixed"
git checkout develop
git checkout -b MyNewBranch
git remote add origin https://github.com/plataformatec/devise.git
git push origin develop
git pull origin develop
git remote remove origin
or you can use:
git remote rm origin
git tag myNewTag myOldTag
git tag -d myOldTag
git push origin :refs/tags/myOldTag
git push --tags