skip to content
Alvin Lucillo

Update latest commit with additional file

/ 1 min read

After you perform a commit, you can add forgotten files into the commit while preserving the commit message

git add path/to/forgotten-file
git commit --amend --no-edit

--amend creates a new commit that will replace your existing commit with both original and newly added file --no-edit preserves original commit message