Answers for "how to add changes to the previous commit in git"

1

how to add changes to the previous commit in git

git add .
git commit --amend --no-edit
#The --no-edit flag allows to make an amendment 
#to the commit without changing the commit message.
Posted by: Guest on March-25-2022

Code answers related to "how to add changes to the previous commit in git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language