error: src refspec master does not match any. error: failed to push some refs to ‘[email protected]:xxx/xxx.git’

1. Git push to gitee reports an error

error: src refspec master does not match any.

error: failed to push some refs to ' [email protected] :xxx/xxx.git'

2. One of them

Although master is displayed on gitee, the GIT tool does not support master (it is suspected of racial issues and replaced with main)

3. Solutions

Push to main as the main branch

Similar Posts: