I am not clear reading the documentation, about how multiple add of a file would work in Git.
I would like to make changes in various stage; but I don't want to commit every time; so I thought that I can make changes, use git add, and then make more changes, until I am ready to do a git commit.
Reading the docs it specify that this is possible, but it seems that the second version always override the first; so you last "git add" will always be the version of the file that you will commit.
Is this correct or there are some inner workings that modify this behavior? and what if you want to go back one "add"; is that possible?