git commit - Undo all files within a folder in git -


i searched , found many link talks un-doing uncommited changes respect specific file:

  1. git reset
  2. git reset --hard
  3. git checkout -- file
  4. git checkout branchname^ filename

but want undo changes files have modifies under specific folder.

assume have folder clients/libs/slickgrid & slickgrid internally contains multiple folder contains multiple files.

i want undo modified files under slickgrid folder. options have on here?

git reset head clients/lib/slickgrid

if part of git's history have do

git checkout clients/lib/slickgrid


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -