I sense a simple git status
or git diff --cached
would be enough to make sure that the last commit is indeed the last one, meaning there is no work in progress, some of it already added to the index, which could constitute a new commit.
If git status
doesn't mention any file added to the index, then you can push your last commit.