내가 만들고 내 로컬 마스터 지점에 일부 변경을 커밋 후마스터를 앞두고 새 로컬 브랜치에 변경 사항을 저장하는 방법은 무엇입니까?
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)
상태입니다.
로컬 변경 사항을 새 분기로 선택하는 방법은 무엇입니까?
원하는 결과는 다음과 같습니다. local/master가 origin/master와 동기화되고 두 개의 커밋이있는 로컬 분기가 있습니다.
git checkout -b newBranchName
이 새로운 지점을 만듭니다 먼저
[현재 변경 사항이있는 Git 브랜치 만들기] 가능한 복제본 (http://stackoverflow.com/questions/3899627/create-git-branch-with-current- 변경) –