Answers for "git file different from last commit"

1

how to commit file to previous commit in git

$ git add new-file
$ git commit --amend
Posted by: Guest on March-08-2021
0

checkout file of different commit

git checkout <COMMIT#> <path/to/the/messed/up/file>
Posted by: Guest on April-29-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language