728x90
반응형
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Delete a remote branch | |
git push origin --delete <branch> # Git version 1.7.0 or newer | |
git push origin :<branch> # Git versions older than 1.7.0 | |
## Delete a local branch | |
git branch --delete <branch> | |
git branch -d <branch> # Shorter version | |
git branch -D <branch> # Force delete un-merged branches | |
## Delete a local remote-tracking branch | |
git branch --delete --remotes <remote>/<branch> | |
git branch -dr <remote>/<branch> # Shorter | |
git fetch <remote> --prune # Delete multiple obsolete tracking branches | |
git fetch <remote> -p # Shorter | |
# https://gist.github.com/cmatskas/454e3369e6963a1c8c89 |
728x90
반응형
'git svn' 카테고리의 다른 글
git 암호화 git-crypt 사용법 (0) | 2020.08.06 |
---|---|
git branch (브랜치) 를 master (마스터) 로 (강제) 이동 (0) | 2019.07.31 |
Git 브랜치 목록 확인 방법: 간단한 명령어 가이드 (0) | 2019.02.05 |
원격 저장소에서 Pull Request 가져오기 (0) | 2018.10.31 |
SVN 저장소를 Git 저장소로 변환 (0) | 2018.08.23 |