How to fetch all git history after I clone the repo with `--depth 1`?

Use git pull --unshallow and it will download the entire commit history.


Alternatively, you can also run git fetch --depth=1000000.