All posts tagged: git

Revert an uncommitted file in Git

comment 1

I’m a relatively recent convert from Subversion to Git, so getting to know the git equivalent of an svn command is challenging. Reverting a file in git actually uses the checkout command. For example, if you want to revert your uncommitted changes for a file named package/, then you would use the following command: git checkout package/