git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push some
git push origin master 時出現報錯
error: src refspec master does not match any
error: failed to push some refs to
網上有很多解決辦法試了都沒用,最後發現因為當前分支並不是master,而是main導致失敗。
解決辦法:
git switch -c master
此時已轉到master分支,再push即可
相關文章
- 記錄GitHub使用過程中的 error: src refspec master does not match anyGithubErrorAST
- git - git push origin master 報錯GitAST
- git push報錯error: failed to push some refs to 'git@github.com:ErrorAIGithub
- 初次git提交程式碼報錯:Push to origin/master was rejectedGitAST
- git push出現unpack failed: error Missing tree錯誤的解決方法GitAIError
- git上傳大檔案!git push 報錯 ! [remote rejected] main -> main (pre-receive hook declined) error_ failed to push some refs to 'xxxGitREMAIHookError
- Github錯誤之failed to push some refs toGithubAI
- git merge origin master git merge origin/master區別GitAST
- brew 報錯 error: Not a valid ref: refs/remotes/origin/master 的解決方法ErrorREMAST
- Git使用gh-pages分支切換到master分支錯誤pathspec master did not match any files known to gitGitAST
- 切換分支時:pathspec master did not match any file(s) known to gitASTGit
- homebrew安裝問題(Failed during: git fetch origin master:refs/remotes/origin/master --tags --force)AIGitASTREM
- error: pathspec ‘myupstream‘ did not match any file(s) known to gitErrorGit
- (轉載)git pull origin master與git pull --rebase origin master的區別GitAST
- git中出現”the requested upstream branch ‘origin/master‘ does not exist“問題的解決GitAST
- git push --set-upstream originGit
- git關於origin和masterGitAST
- git push出現Permission denied (publickey)錯誤Git
- 在Git中,origin / master與origin master之間有什麼區別?GitAST
- git push fatal: HttpRequestException encountered. An error occurred while sending the requestGitHTTPExceptionErrorWhile
- 解決 Jenkins 上 git 出現的 “ERROR: Error fetching remote repo 'origin'” 問題JenkinsGitErrorREM
- git學習:關於origin和masterGitAST
- Github :git push檔案過大報錯remote: error: GH001: Large files detected.處理方法GithubREMError
- weblogic報錯: OPatch failed with error code 73WebAIError
- git和TortoiseGit pull和push報錯:git did not exit cleanlyGit
- DocumentDB 報錯“not master”AST
- MySQL主從複製報錯:Got fatal error 1236 from master when reading data fromMySqlGoErrorAST
- error in ./src/components/form/Editor.vue Module build failed: Error:Vue packages version mismatchErrorORMVueUIAIPackage
- git push命令Git
- 【Jenkins】data stream error|Error cloning remote repo ‘origin‘ 錯誤解決JenkinsErrorREM
- GIT使用過程出現(master|REBASE 1/10)GitAST
- MongoDB 備份恢復啟動後執行操作報錯:Error:couldn't add user:not masterMongoDBErrorAST
- git rebase masterGitAST
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- MySQL 8.0.26 bug ERROR 1064(42000) -master-data is deprecated and will be removeMySqlErrorASTREM
- git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500GitErrorRPCAIHTTP
- mac scrcpy 報錯 does not exist or is not a regular file,ERROR: Server connection failed(scrcpy mac與極空間衝突)MacErrorServerAI
- 【ERROR】OPatch failed with error code 73ErrorAI