Restore git commits history

When you occasionally have truncated in your local copy of the repository the history of the commits to no depth, with something similar to the command,
git clone git://..../... --depth 1
there’s no needs to re-checkout complete repository from scratch.

Just perform the following command:
git pull --unshallow
and the complete history will be restored.