Git provides an option to modify the last commit. For staging follow the normal method:
- git add .
--amend
option to staged files to the last commit:
- git commit --amend
-m
option the previous commit message will be prompted by default. On the other hand to amend a commit without changing its commit message use the --no-edit
option.
No comments:
Post a Comment