Answers for "undo change a file from specific commit"

0

git reset a single file to previous commit

git checkout c5f567 -- file1/to/restore file2/to/restore
Posted by: Guest on September-28-2021
0

keep file chnges but remove previous commit log from a branch

git reset HEAD^
Posted by: Guest on February-27-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language