본문 바로가기

전체 글180

Git | revert git push 를 했더니 error: failed to push some refs to hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.. 2020. 10. 15.
Git | fatal: No such remote fatal: No such remote: 'xxx' 분명 xxx 저장소가 맞는데 이런 오류가 나왔다. 1) git remote set-url origin //해당 명령어로 origin 주소를 다시 설정한다. 2) git remote -v //설정된 주소를 확인한다. 3) git status 2020. 10. 15.
Git | fatal: remote origin already exists 폴더를 통째로 복사했다가 숨겨져 있던 .git 파일도 같이 복사되는 바람에 origin 저장소가 겹쳐 버렸다. error: src refspec master does not match any error: failed to push some refs to fatal: remote origin already exists. //원격저장소가 이미 존재한다는 뜻이므로 1) 'git remote -v' 명령어로 현재 origin 저장소를 확인한다. 2) 'git remote rm origin' 명령어로 origin 을 삭제 3) 'git intit' 으로 저장소 초기화 git add . git push 까지 원래 하려고 했던 레포지토리 초기 푸시 순서대로 입력한다. 2020. 10. 15.
프로그래머스 | 나누어 떨어지는 숫자 배열 //filter function solution(arr, divisor) { var answer = arr.filter(v=>v%divisor == 0); return answer.length == 0 ? [-1] : answer.sort((a,b)=>a-b); } //map function solution(arr, divisor) { var answer = []; arr.map((v)=> { v%divisor === 0 && answer.push(v); }) return answer.length ? answer.sort((a,b)=>a-b) : [-1]; } //before function solution(arr, divisor) { var answer = []; for(var i=0; i 2020. 9. 15.
좋아하는 일을 끝까지 해보고 싶습니다_김고명 2020. 9. 14.
스프린트_제이크 냅 2020. 9. 14.