How do I move a commit from another branch?

Hello everyone, how do I move a commit from a branch of another repository to mine? Tried using the command git cherry-pick "hash сommit" but writes Bad object…

Example: https://github.com/ZyCromerZ/android_kernel_xiaomi_mt6768/commit/1d170ce8463a586ebe7dba68ca75289508068deb

The commit you cherry-pick must be available in your local repository before you can cherry-pick. You can achieve that by adding the other repository as a remote and fetching, see: Git - Working with Remotes