π§ μλ¬ μν© error: src refspec main does not match any
git push origin master
μ
λ ₯νλ μλ¬ λ°μ
π μ΄μ
- κΉνλΈμμ pull μμ΄ pushν κ²½μ° κΈ°μ‘΄ λ΄μ©μ μμ νκ±°λ νλ λ¬Έμ κ° μκΈΈ μ μκΈ° λλ¬Έμ, μ΄λ° λ¬Έμ λ₯Ό νΌνκ³ μ μλ¬ λ©μΈμ§λ₯Ό λ°μ
βν΄κ²°λ°©μ
$ git init
$ git add .
$ git log --graph --oneline --all
$ git commit -m 'μ»€λ° λ©μΈμ§'
$ git push -u origin master
π§ μλ¬μν© error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/~~
$ git push -u origin master
μ
λ ₯νλ μλ¬ λ°μ
π μ΄μ
- master branchκ° μμ΄μ λ°μνλ μ€λ₯
βν΄κ²°λ°©μ
$ git checkout -b 'master'
$ git push origin master
μμ£Ό μ μ©ν μ 보λ€μ!