Answers for "restore committed file in git"

1

git restore file

git restore --source=c5f567 file1/to/restore file2/to/restore # restore files to how they were in the commit with the hash listed in --source
Posted by: Guest on October-20-2021
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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language