Actually, you don't even need `git`. You could just download the zip:

https://github.com/wp-cli/wp-cli/archive/master.zip