To initialize your local repository using the AOSP trees to build TWRP, use a command like this:
repo init --depth=1 -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11
Then to sync up:
repo sync
Then to build:
export ALLOW_MISSING_DEPENDENCIES=true; . build/envsetup.sh; lunch twrp_gtowifi-eng; mka recoveryimage