发现是默认建立的仓库是 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