본문 바로가기
오류

git nothing to commit, working tree clean

by 뇽꾸리 2022. 4. 7.
반응형

git push 오류 

 

- 오류메시지 

1 : Updates were rejected because the remote contains work that you do  (깃에서 프로젝트 만들 떄 README.md 파

일생성해서 나는 오류 )

2 : git nothing to commit, working tree clean 

- 해결방법
  - git pull origin master

 

3 : fatal: refusing to merge unrelated histories ( 커밋 히스토리 연관성이없어서 merge 거절) 

- 해결방법
 - git pull origin master --allow-unrelated-histories

 

- 마지막으로 해주면 올라간다
git status
git add .
git push -u origin master

 

반응형

댓글