Git How to Checkout a File from Another Branch? git checkout <other-branch-name> -- path/to/your/folder cancal previous commit git reset HEAD~