7
git 명령을 잘못 입력하여 '--track'이라는 로컬 분기를 작성했습니다.실수로 --track이라는 자식 로컬 브랜치를 만들었는데 어떻게 삭제할 수 있습니까?
git branch -m --track delme
(this renames the current branch to delme, not the branch called --track)
git checkout --track
> fatal: --track needs a branch name
git branch -d --track
(does nothing, reports nothing)
git branch -D --track
(also does nothing)
git branch -d "--track"
(also does nothing
어떻게이 지점을 삭제할 수 있습니다
나는 다음 시도했다?
완벽 :-) 대단히 감사합니다. – Rich
사실,'--'는 모든 후속 명령 줄 인수를 비표준으로 취급하는 유닉스 명령을 꽤 많이 * 알려줍니다. –
그러나 많은 git 명령은 버전과 경로 지정 인수 (둘 다 옵션이 아님) 사이의 구분 기호로'--'를 사용하지만,'git branch'의 경우에는 사용하지 않습니다. –