I know I can do a shallow clone using git clone --depth 1 <branch-name> <repository>.
I know I can pull new changes using git pull.
But is there a way to git pull while clearing the tail, so in the end I will have only one commit in the filesystem (as if I would do clone --depth 1 on the new version?