κΈ°μ‘΄ git μ΄λ ₯μ μμ νλ €κ³ gitμ μ΄κΈ°ν(initialize)ν λ€μ λ°μν μλ¬.
git remote -v λ‘ νμ¬ μ격 μ μ₯μ μνλ₯Ό νμΈνκ³ , λ°μμ΄ μ λ κ²μ νμΈνκ³ , μλ λͺ λ Ήμ΄λ₯Ό μ€ννλ€.
git push -u origin main
κ·Ένμ μ΄κ²μ κ² μλνλ©΄μ μλ λ μλ¬ λ©μΈμ§κ° λ²κ°μκ°λ©΄μ μΆλ ₯λλ€.
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/[μ격 μ μ₯μ μ£Όμ]'
λΈλμΉ λ¬Έμ μΈκ° νλλ° κ·Έκ±΄ μλμκ³ , git init μ΄ν git addλ νλλ°, git commit ν΄μ μ€ν μ΄μ§μ μ¬λ¦¬μ§ μμμμμ. κ°λ¨νκ² ν΄κ²°λλ€.