Get the latest tech news
Creating a Git Commit: The Hard Way
Let's create a Git commit using Git's low-level (plumbing) commands
Many of us create a few Git commits daily, either through GUI tools or the command line. Staging Area (Index): A file inside the.git directory that holds the information about what will go into your next commit. We used these low-level commands to craft a commit by creating its underlying tree and blob objects.
Or read this on Hacker News