User Tools

Site Tools


git

Undo last commit

git reset HEAD~1

Modify comment of last commit

It works only if it is the last commit.

git commit --amend -m "New message" 
git push --force --progress "origin" my-branch:my-branch
git.txt · Last modified: 2022/07/01 17:39 by odefta