git clone 에러 fatal: multiple updates for ref 'refs/remotes/origin/main' not allowed
·
Tool/Git
대학교에서 자바 수업 중 교수님께서 깃허브에 올려주시는 소스코드를 클론하려고 했다. 근데 왠걸? fatal: multiple updates for ref 'refs/remotes/origin/main' not allowed 이 에러가... 계속 뜨는 거에요.. ㅠㅠㅠㅠ 진짜 몇날 몇일을 검색하다가 드뎌 해결함 ㅠㅠㅠ  gitconfig 파일 보기git config --list## 또는 git config -l 그러면 gitconfig 리스트가 쭉 뜨는데 그 중 이게 문제였다!remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* 이거를 제거해줘야하기 때문에 git config --global --unset remote.origin.fetch요거를 입력해주면 f..
SSH 공개키 (재)발급 및 확인 방법
·
Tool/Git
모든 명령어는 terminal(터미널)을 사용하면 된다. 윈도우는 gitbash 쓰면 되는 것으로 알고 있다. 나는 MAC 사용 중! 1. SSH 공개키가 있는지 확인한다. ls -al ~/.ssh id_rsa.pub가 있으면 공개키가 있다는 것! 2. 공개키가 있을 경우 MAC인 경우 cat ~/.ssh/id_rsa.pub Window인 경우 cat id_rsa.pub 명령어를 치고 나면 ssh-rsa ~~~~~~~ .local이라고 나오는 부분이 공개키가 되는 것이다. 3. 공개키가 없을 경우 ssh-keygen Enter file in which to save the key: 엔터 Enter passphrase (empty for no passphrase): 엔터 Enter same passphra..