Hands-on task
Add a forgotten file to the last commit
In the /root/repo repository, the last commit add app includes only app.py, but an uncommitted file config.yml was left next to it — someone forgot to add it. Include config.yml in that same last commit, without creating a new one: after the fix, the history should still contain two commits, and HEAD should include both app.py and config.yml.
- git commit --amend
- index
- git add
- editing the last commit
- --no-edit