내 기계 인의 저장소가 내가이 작업 디렉토리가 다음 git branch - 일관성없는 결과가 나옵니까?
을 /opt/git/myrepo.git :/var/www/mysite.com /var/www/test.mysite .COM
모두, 나는 새로운 지점을 만들어 test.mysite.com에서 /opt/git/myrepo.git
에서 복제 myfirstbranch라고 내가 함께 REPO에 밀어 :
git push origin myfirstbranch
,536 그런
내가이 볼 -a 자식 지점한다면 : 지금은 mysite.com에 가서 자식이 다음 자식 지점 -a를 가져 오는 경우
* master
myfirstbranch
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/myfirstbranch
을, 이것은 내가 볼 것입니다 :
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/myfirstbranch
그럼 괜찮습니다. 그러나 내가 할 다음 경우 : 다음
git push origin :myfirstbranch
mysite.com에서
다음 자식 분기 난 아직도 참조 -a, 가져 test.mysite.com에 가서 자식을 수행
* master
myfirstbranch
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/myfirstbranch
왜 여전히 원격지/근원/근원지가 아직 존재한다고 생각합니까? mysite.com에서 git branch -a 할 때 은 리모컨/원점/myfirstbranch를 표시하지 않습니다
왜 차이가 있습니까?
정확히 내가 원했던 것, 감사합니다! –