One file, two changes
Git can stage a whole file, a hunk, or a single line. The lines you leave unstaged stay in the working tree for the next commit. That is how a branch's history stays readable: each commit is something you can name.
How gitā stages
The changes view lists the files. Open one and stage a hunk, or the lines inside it. The rest stays where it is. The commit message sits with the staged set, and the graph updates when you commit.
The live view is on the Staging page.
After the commit
What you left unstaged is still the working tree. Stage it as the next commit, discard it, or stash the set if you need the branch clean for something else. Stashes are listed with the repository.