Run the following commands:
git reset --soft <SHA of previous commit>
git restore --staged <File path>
git commit -m <Commit message>
git push -f
CAUTION: This will squash all the commits after the previous commit
Run the following commands:
git reset --soft <SHA of previous commit>
git restore --staged <File path>
git commit -m <Commit message>
git push -f
CAUTION: This will squash all the commits after the previous commit
Comments
Post a Comment