728x90
git init
git remote add origin (깃 url)
git add .
git commit -m "최초 커밋"
git push -u origin master
git push 시 respository 충돌로 인해 하위 에러 발생
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
해결 명령
git push -u origin +master
+ 단 커밋내용이나 기존 내용 유실주의
728x90
'git' 카테고리의 다른 글
git add 취소/ commit 취소하기 (0) | 2021.10.28 |
---|---|
Git push 오류 해결 (Updates were rejected because the tip of your current branch is behind its remote..) (0) | 2021.09.29 |
git checkout/ merge (0) | 2021.09.13 |
git branch 현재 작업 브랜치 확인/ 이동 (0) | 2021.09.13 |
remote 변경/삭제 /추가 (0) | 2021.09.13 |