In traditional method, I will use this command to repo init and repo sync, and it works.
repo init -u https://github.com/abc/def.git -b main -m manifest.xml