Git sync in Cloudformation automates updates for the main stack but nested stack templates still need to be stored in S3 as github URLs aren't supported directly. To streamline this try using a CI/CD pipeline eg. AWS CodePipeline or github actions to automatically upload templates from github to S3 to ensure CloudFormation can access them without manual uploads.