I want to add a file to an existing commit
Stage your file for commit like you normally would:
git add <path to file>
Amend the commit, optionally with a new message:
git commit —amend -m "New commit message"
Stage your file for commit like you normally would:
git add <path to file>
Amend the commit, optionally with a new message:
git commit —amend -m "New commit message"