github(3)
-
[Github] RSA SSH host key 업데이트
Go 언어 공부하면서 기록을 남겨 볼까 하여.. Github에 소스를 올리려고 하는데.. 아래의 오류 메세지가 발생했다. $ git push -u origin main @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! I..
2023.05.12 -
[git] 작업전에는 git pull 하고 최신 상태에서 작업해야..
어제 github 에 신규 저장소 생성후 작업중인 폴더를 push 하려고 했는데 연속적으로 에러가 발생했다. git push 중 non-fast-forward 에러 발생 안내 문구대로 git pull 했지만 no tracking information 으로 또 문제 역시 안내 문구대로 git branch --set-upstream-to 명령어 실행 했지만 fatal: refusing to merge unrelated histories 발생 또 해결을 위해 git pull 에 --allow-unrelated-histories 옵션 적용 문제 발생 원인으로 생각되는 건.. 신규 저장소 생성후 github 홈페이지에서 .gitignore 파일을 작성후 commit 함 로컬에서 작업중인 디렉토리에 git init..
2023.02.16 -
[Github] default branch name change
github 의 default branch 이름이 master 에서 main 으로 변경되었는데 모르고 있었다. 뒷북이지만 2022년 10월 1일 공지되었는데 Black Lives Matter 의 사회적 이슈 제기로 https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/ master 단어 대신 main 으로 변경되었다고 한다.. 아래 그림은 git init 으로 생성된 default 브랜치가 master 로 생성된 상태에서 github에 생성한 저장소로 push 하니 main 브랜치에 반영할게 없다고 에러가 발생한 화면이다. 해결 방법 .git 폴더를 삭제 git init 명령..
2023.02.15