What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-03 16:58:06
how to revert uncommitted changes including files and folders?
# If you want to revert the changes only in current working directory git checkout -- . # discard anything (note: you have to be in the directory # where all of the changes are located) # or you can use the command on line 9, you can discard anything # o... Add solution -
Shell/Bash 2021-09-08 14:21:02
remove changes file git command
git clean -df git checkout -- . Add solution -
Shell/Bash 2021-08-30 20:17:01
How to revert uncommitted changes including files and folders?
# If you want to revert the changes only in current working directory git checkout -- . # discard anything (note: you have to be in the directory # where all of the changes are located) # or you can use the command on line 9, you can discard anything # o... Add solution -
Shell/Bash 2021-08-30 16:45:01
how to undo a modified file in git
# If you want to revert the changes only in current working directory git checkout -- . # discard anything (note: you have to be in the directory # where all of the changes are located) # or you can use the command on line 9, you can discard anything # o... Add solution