Can I use `git checkout --patch` non-interactively? -


i want reset contents of working directory match revision without changing commit current branch pointing to, git reset does. git checkout --patch this, interactively, requiring me answer yes every change want reset. annoying when i'm resetting lot of changes, in cases i'd rather reset everything.

is there way use git checkout --patch (or equivalent) non-interactively?

git read-tree-umcommit

resets index , worktree commit (the -m option says merge what's being read index -- 1 tree , index bit of degenerate case), u option says update worktree when done).


Comments

Popular posts from this blog

java - How to print docx and pdf? -

c# - How to use process.StartInfo.Arguments in command prompt? -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -