반응형
공통된 참조가없고 지정된 것도 없습니다. 아무것도하지 않고
gitolite에 추가하고 싶은 로컬 git 프로젝트가 있습니다. 분명히 이것은 어렵 기 때문에 아이디어를 포기했습니다. gitolite-admin / conf / gitolite.conf에 추가하고 변경 사항을 커밋하고 푸시하여 새 gitolite 저장소를 만들었습니다. 그런 다음 새 저장소를 git clone git-noah:project-name
성공적으로 복제 했습니다. 그런 다음 .git을 제외한 모든 파일과 폴더를 프로젝트 이름 폴더에 복사했습니다. 내가 했어
git add -A
git commit -a -m "Moved to new repo."
git push
이 오류가 발생합니다.
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'git-noah:project-name'
원격 (원본) 저장소에 아직 마스터가 없습니다.
git push origin master
이 첫 번째 푸시 후에는 더 간단한
git push
git을 사용하여 미러링하는 경우 다음을 사용하십시오.
git config remote.backup.mirror true
리포지토리를 다시 생성 했으므로 로컬 및 원격 리포지토리는 동일한 기록을 공유하지 않습니다. 따라서 Git에서는이 콘텐츠를 푸시 할 수 없습니다.
원격 저장소에있는 컨텐츠를 잃어 버릴 염려가 없다면 강제로 push 할 수 있습니다 git push -f
.
참고 URL : https://stackoverflow.com/questions/23528761/no-refs-in-common-and-none-specified-doing-nothing
반응형
'IT TIP' 카테고리의 다른 글
MS Excel 데이터를 SQL Server에 붙여 넣기 (0) | 2020.11.23 |
---|---|
JSON을 사용한 Spring MVC 멀티 파트 요청 (0) | 2020.11.22 |
모든 axios 요청에 대한 Authorization 헤더 첨부 (0) | 2020.11.22 |
MySQL AUTO_INCREMENT가 롤백되지 않습니다. (0) | 2020.11.22 |
BroadcastReceiver에서 서비스 시작 (0) | 2020.11.22 |