반응형 ORIGIN2 [Github] ![rejected] master -> master (non-fast-forward) 해결 목표 push를 하려고 할때, push를 할 수 없는 경우 원인과 해결 방안을 정리하려고 한다. 1. 원인 .gitignore 파일 또는 README.md 파일로 인해서 생길 수 있는 문제. 2. 해결 방안 branch 이름 앞에 +를 붙여서 push 진행 $ git push origin +master 3. 추가 이슈 파일을 수정하기 전에 pull을 먼저 진행하고 push 하기. $ git pull origin master --allow-unrelated-histories 2023. 4. 28. [Github] Github repository 변경하기 Origin repository pull / push git pull git add . git commit -m "edit repository" git push -u origin main Remove origin repositroy remote 기존 리포지토리 리모트를 제거해준다. git remote remove origin Add new repositroy remote 새로운 리포지토리 리모트를 추가해준다. git remote add origin https://github.com/account(계정)/repository(리포지토리) 2023. 2. 3. 이전 1 다음 반응형