|
|
|
|
|
by paddyoloughlin
3692 days ago
|
|
Is the semi-repository thing you are talking about the index? If so, I would describe the index as a sort of staging area for preparing your commit.
You might not necessarily want to include every single change in your workspace in your next commit.
The index allows you to pick which things you want to go into the commit then git-commit creates the commit from what's in the index.
If you don't care for such behaviour, and you just want to commit all changes in tracked files in your workspace, git-commit -a does that. This[0] is one of the best tools I've seen for understanding git commands and even a bit of how git works.
It's interactive, divides things into the different 'places' that content can be in git and then shows you how each command moves content between those places. Click on the workspace and it will show each command which does things to content in your workspace, the bar the command is written on shows what the other area it interacts with is and the direction that the command moves content. I hope it helps.
[0] http://ndpsoftware.com/git-cheatsheet.html |
|