New newbie here. This is related to manipulating staging area of git.
Say I have a file named cat.txt.
It's git committed version has a single line in it. Then I edited cat.txt added a second line and staged it. Then edited again, added third line and staged that too. My working copy and staging area reference to it contains three lines.
Now I decided the to commit the version with only two lines in it. How do I revert cat.txt in staging area back to its two lines version? Thanks