untracked 파일 모두 삭제git clean -funtracked 파일 및 디렉터리까지 삭제git clean -fd지워질 파일을 미리 확인git clean -fd --dry-run
기존 브랜치 체크아웃git checkout old_branch신규 브랜치명으로 변경git branch -m new_branch기존 브랜치 삭제git push origin :old_branch신규 브랜치 upstream으로 지정git push --set-upstream
git branch -d {브랜치명}예시) test1 브랜치 삭제(로컬)git branch -d test1git push origin --delete {브랜치명}예시) test1 브랜치 삭제(원격 저장소)git push origin --delete test1
fatal: cannot lock ref 'refs/heads/...' cannot create 'refs/heads/...'브랜치는 폴더가 아니라 분기이며 분기 b가 존재하는 경우 b/something같은 그 하위 분기는 생성할 수 없다는 것git 공식문서Git ca
복사할 원본 repository를 가져온다git clone -bare \[복사할 repository 주소]1번에서 가져온 repository 내부에 접속cd repository디렉토리명이동시킬 repository에 push한다.git push --mirror \[rep