Discarding removes all changes from the active branch. For example, discarding a new file removes it from the branch.
Move your mouse over the file containing the changes you want to discard and click Discard Changes.
Only unstaged files can be discarded.