error: src refspec master does not match any error: failed to push some refs to ‘https://gitee.com/s

发现是默认建立的仓库是 main,而不是 master


iot421@iot421deMac StarpPhone % git push origin master
error: src refspec master does not match any
error: failed to push some refs to 'https://gitee.com/starplatinum111/starp-phone.git'
iot421@iot421deMac StarpPhone % git log
commit 9c136fc0c791e4e8b84a8d91f3421145511edded (HEAD -> main)
Author: starp <2500441778@qq.com>
Date:   Fri Jan 7 21:56:16 2022 -0800

    select 不会啊

commit 90478eab17af2f0fb9e2f9d6b77dc8df58e22d21
Author: starp <2500441778@qq.com>
Date:   Fri Jan 7 06:42:54 2022 -0800

    Initial Commit
    发现是默认建立的仓库是 main,而不是 master
iot421@iot421deMac StarpPhone % git push origin main  
Username for 'https://gitee.com': starplatinum111
Password for 'https://starplatinum111@gitee.com': 
remote: [session-174ec694] starplatinum111: Incorrect username or password (access token)
fatal: Authentication failed for 'https://gitee.com/starplatinum111/starp-phone.git/'
iot421@iot421deMac StarpPhone % git push origin main
Username for 'https://gitee.com': starplatinum111
Password for 'https://starplatinum111@gitee.com': 
Enumerating objects: 708, done.
Counting objects: 100% (708/708), done.
Delta compression using up to 4 threads
Compressing objects: 100% (669/669), done.
Writing objects: 100% (708/708), 19.43 MiB | 5.76 MiB/s, done.
Total 708 (delta 161), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (161/161), done.
remote: Powered by GITEE.COM [GNK-6.2]
remote: Create a pull request for 'main' on Gitee by visiting:
remote:     https://gitee.com/starplatinum111/starp-phone/pull/new/starplatinum111:main...starplatinum111:master
To https://gitee.com/starplatinum111/starp-phone.git
 * [new branch]      main -> main
iot421@iot421deMac StarpPhone % 

发现是默认建立的仓库是 main,而不是 master

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值