일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- fade-in
- 숫자게임만들기
- 카카오톡알림설정 #카톡알림설정
- array #object #lodash #javascript
- ThemeProvider
- 오류
- hover효과
- 메뉴
- 음악검색기능 #음악찾기기능 #음악찾기 #음악검색 #네이버음악검색 #다음음악검색 #멜론음악검색
- 윈도우10캡쳐 #윈도우10캡처 #윈도우10스크린샷 #캡쳐하기 #캡처하기 #스크린샷찍기 #캡쳐지연 #스크린샷지연
- 요일구하는공식
- 좌우슬라이드
- 티스토리 #폰트변경 #꾸미기
- fadeint
- 가장작은자연수
- 파비콘 #파비콘만들기 #포토샵파비콘
- 네트워크 #5G안터질때 #4G로바꾸는법 #5G를4G로 #5G를LTE로 #갤럭시5G변경
- 프로그래머스
- list추가하기
- 리액트
- 자바스크립트
- 요일구하기
- 문자열다루기
- 슬라이드다운
- darkmode
- 자바스크립트 #메뉴만들기
- todolist
- React
- GIT
- 동영상다운 #영상다운 #크롬웹스토어 #드래그되지않는 #클릭되지않는 #동영상
Archives
- Today
- Total
잿꽃's posting Garden
Git 오류 : failed to push some refs to '',Updates were rejected because the remote contains work that you do 본문
WEB/GIT
Git 오류 : failed to push some refs to '',Updates were rejected because the remote contains work that you do
잿꽃 2022. 4. 22. 14:45내가 보려고 만드는 git 오류 리스트
Git 오류 : failed to push some refs to '',Updates were rejected because the remote contains work that you do
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/ssoa1111/portfolio.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
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.
어떻게 매일 git 오류가 날 수 있는지 궁금하지만 해결방법을 찾기 위해 검색을 해보았다.
git push -f origin main
이걸 써 주면 된다.
(아래까지 읽고 실행할 것)
리드미를 추가해서 난 오류라는데 마침 깃 사이트에 리드미를 추가했었다.
[주의]리드미를 깃 사이트에 썼더니 파일은 push가 되었는데 readme가 날라갔다[주의]
깃 사이트에 직접 readme를 작성하였을 경우 위의 push전에 pull과정을 거쳐야 합니다.
로컬 파일에 작성했을 경우 위의 코드를 바로 작성해주면 된다.
결국 push는 되었지만 공들인 나의 리드미는 날라갔고....흑흑
push한 내용을 만든 시간이 리드미에 쓴 시간의 반의 반도 안되는데....
웬만하면 로컬에 써야겠다는 생각이 들었다...
728x90
'WEB > GIT' 카테고리의 다른 글
Git 초기 셋팅, 명령어 (0) | 2022.05.29 |
---|---|
Git 오류 : Module not found : can't resolve 파일 in 경로 (0) | 2022.05.28 |
Git 오류 error: src refspec main does not match any (0) | 2022.04.27 |
Git 오류 fatal: '$git_dir' too big 해결방법 (0) | 2022.04.19 |
Comments