Files modified after staging need to be staged again to commit the latest changes in Git
A mystery of missing GitLab repo files motivated me to read the Pro Git book. I relearned the different VCS-es and models that back them: local, centralized, distributed; patch/delta vs. snapshot. I revisited the three areas a file can be in: working area, staging area, and the git repo. Per Chapter 2, I saw how a file can be both modified in the staging area and the working area at once. Git’s snapshot of the file goes in the staging area, not the file itself. So if you modify it in the working directory after staging, only the older modification is ready for commit; the later one will need to be added again to be committed.