Git: How to undo unstaged changes in a certain folder

I made many changes which were not staged, and I want to undo changes in a certain folder, how can I achieve this?

I knew that use git stash will undo all changes, so how can I achieve my above goal?

Answers


a certain file: git checkout -- filename a certain path: git checkout -- path all changes: git checkout -- .


Need Your Help

Update asp.net WebService reference from wsdl file?

asp.net web-services wsdl

Is it possible in asp.net to update or create a web service reference from a wsdl file on our local drives?

iOS add audio effect before render callback processing?

ios audio callback core-audio audiounit

In my app, I'm doing audio processing in the render callback (input only, no output).