로컬 컴퓨터에 두 번째 로컬 저장소를 추가하려고합니다. 그래서, 디렉토리를 만들어 거기에 git init
을 만든 후 내가 달릴 :GIt 로컬에서 로컬로 푸시
git remote add new_repo /path/.git
그런 다음 내 지역의 repo에서, 나는 그것이 내가 밀어 곳에서 내 작업 지점입니다 알고, git push -u mybranch
을 실행 한 후 나는 오류
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
어떻게 두 번째 레포에서 물건을 밀어 넣을 수 있습니까?
git push new_repo mybranch:mybranch
대단히 감사합니다. – user1611830