Google News
logo
Git - Interview Questions
What work is restored when the deleted branch is recovered?
The files which were stashed and saved in the stash index list will be recovered back. Any untracked files will be lost. Also, it is a good idea to always stage and commit your work or stash them.
 
If you want to fetch the log references of a particular branch or tag then run the command – “git reflog <ref_name>”.
Advertisement