$ mkdir tw; cd tw
$ repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1
$ git clone https://github.com/TeamWin/android_device_samsung_a12 -b android-12.1 device/samsung/a12
$ git clone https://github.com/edward0181/android_kernel_samsung_a12 kernel/samsung/a12
$ repo sync --no-repo-verify -c --force-sync --no-clone-bundle --no-tags --optimized-fetch --prune -jnproc
$ source build/envsetup.sh; export ALLOW_MISSING_DEPENDENCIES=true; lunch twrp_a12-eng; mka recoveryimage
$ Boot TWRP; format DATA partition; start TWRP SHELL; execute: multidisabler. Your DATA partition will be secured against re-encryption.
@Edwin0305 for his adds to Android-12.1 tree