iOS 개발일지
git push가 안될 때!! hint: Updates were rejected because the tag already exists in the remote. 본문
iOS
git push가 안될 때!! hint: Updates were rejected because the tag already exists in the remote.
Lia's iOS 2023. 12. 15. 10:41
평소와 같이 소스트리로 commit하고, push 하려는 순간...
갑자기 에러가 났다며 푸시가 되지 않았다.
사람 겁먹게 모든 태그를 쫙 보여주지만, 문제가 있는 곳은 [rejected] 한 곳!
! [rejected] Korea(3.3.4) -> Korea(3.3.4) (already exists)
updating local tracking ref 'refs/remotes/origin/Release'
error: failed to push some refs to 'http://~~~.git'
hint: Updates were rejected because the tag already exists in the remote.
Branch 'Release' set up to track remote branch 'Release' from 'origin'.
Completed with errors, see above
hint: Updates were rejected because the tag already exists in the remote.
원격 저장소와 로컬의 태그가 맞지 않아 잠깐 꼬인 상태이니, 이 둘을 맞추기만 하면 된다.
터미널에서 아래 명령어를 통해 태그를 받아오면 해결~
git pull --tags
위 방법으로 해결되지 않는다면, 아래 명령어로 충돌하는 로컬 태그를 원격 버전으로 재정의하여 해결할 수 있다.
git pull --tags -f
'iOS' 카테고리의 다른 글
Cell이 선택되었을 때 UI 변경, didSeletAt 말고 딴거 써보자! (+Cell의 zPosition 변경) (0) | 2024.02.02 |
---|---|
LiveActivity로 실시간 현황을 보여주자! (feat.DynamicIsland) (1) | 2024.01.09 |
[iOS] WKWebView의 현재 URL을 감지하고, 이벤트를 발생시키자! (0) | 2023.11.27 |
(비공개) (0) | 2023.06.15 |
Objective-C에 대해 아주아주 간단히 알아보자 (0) | 2023.03.08 |