지점 branch_A
및 branch_B
인 로컬 ABC에 있다고 가정 해 봅시다.힘내, 원격 진입
- git push origin
- git push origin branch_A
- git push origin branch_A:branch_A
질문에 대한 이유는, 내가 놀랄로 다음과 같은 일련의 이벤트 찾기 : repo_A
에서
사이의 차이점은 무엇입니까의 행동
11:05:56 ~/blah $ git push origin
Counting objects: 31, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (17/17), 1.28 KiB, done.
Total 17 (delta 10), reused 0 (delta 0)
To ssh://[email protected]/myrepo.git
141fc0d..d42c3b6 branch_B -> branch_B // While i was in branch_A
11:06:02 ~/blah $ git branch
branch_A
* branch_B
리포지토리 내의 브랜치 이름 인 것처럼 보일 때 리포지토리를'repo_A'와'repo_B'라고 지칭하는 것이 다소 혼란 스럽습니다. –
@MarkLongair, 당신은 절대적으로 맞습니다. updated – JAM