'Redoing Git Commit

I have Git commit "Day 19" that doesn't have all the code I wanted to commit. Then I made a new commit with those new changes "Day 21". Is there a way to re-commit things from "today" to "yesterday"? For example, if I would make a new branch at commit "Day 18" (commit before "Day 19") and merge the branch with newer commits can I somehow keep the code without committing it immediately?

This is what am talking about: enter image description here

I don't know how to use Git very well, so maybe this solution is impossible I'm just trying to explain my problem with it.

Thanks in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source