Github project cant upload to app.netlify.com

hello,i cant deploy my github project to app.netlify.com.it tries to but gives me this code
3:27:02 PM: Build ready to start

3:27:04 PM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302

3:27:04 PM: build-image tag: v3.7.6

3:27:04 PM: buildbot version: 79704bf38d67eddf1e71534f7769ca23c55b4916

3:27:04 PM: Fetching cached dependencies

3:27:04 PM: Failed to fetch cache, continuing with build

3:27:04 PM: Starting to prepare the repo for build

3:27:05 PM: git ref refs/heads/main does not exist or you do not have permission

3:27:05 PM: Creating deploy upload records

3:27:05 PM: Failing build: Failed to prepare repo

3:27:05 PM: Failed during stage ‘preparing repo’: git ref refs/heads/main does not exist

3:27:05 PM: Finished processing build request in 739.441567ms