git을 쓰기전에 github.io를 만들었다니...
어쩐지 생고생을 했다...
git.io을 만들면서 git cmd가 익숙해서 vs code와 이클립스 를 사용하는것보다
터미널에 입력하는것이 더 편하게 느껴졌다
너무나도 복잡한 환경설정
git cmd로 끝냅니다~!!
cd 파일들이 있는 폴더
git clone http님주소
-> 사진은 git hub.io만들때 재활용,,
git add .
warning: in the working copy of 'Desktop/javajungsuk_basic-master/javajungsuk_basic_src/ch01/.classpath', LF will be replaced by CRLF the next time Git touches it
-> 오류 뿜어냄 -두번입력하면 넘어가져서 패스
git commit -m "start"
git push
그냥 git push만하면 안된다..
git remote add <name> <url>
and then push using the remote name
git push <name>
에러 뿜어 내는중
it remote add origin https:
origin http설정
git push origin master
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/nananjadive/java.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
뭐지 branch가 메인으로 되어있어서 그런가
git push origin main
error: src refspec main does not match any
error: failed to push some refs to 'https://
해결안돼서,, 구글링을 해보았다
git push --set-upstream origin master
Enumerating objects: 95, done.
Counting objects: 100% (95/95), done.
Delta compression using up to 4 threads
Compressing objects: 100% (95/95), done.
명령어 외우기가 힘드네요..