git push 오류

exitoshin·2022년 10월 16일
0


git push를 했더니 error가 떴다!
인터넷 검색을 했더니

git init
git add .
git commit -m "메세지"
git config user.name "Username"
git config user.email "Email address"
git remote add origin "github.com/your-repo.git"
git push -u origin master

이렇게 하라고 되어있었다.
생각보다 뭘 많이해야해서 꼬이면 큰일 날거 같았기에.. 겁쟁이는 번역기로 돌려봤다.
"main -> main (먼저 가져오기)
오류: 일부 참조를 'https://github.com/bbayong28/bbayong28.github.io.git'으로 푸시하지 못했습니다."

먼저 가져오기를 안해서 즉, git pull을 안해서 생긴현상 같아서 git pull을 하고 git push를 하니 ★성공★ :-)

profile
Do your best in the present!

0개의 댓글