branch=`git rev-parse --abbrev-ref HEAD`
git show-branch -a 2>/dev/null | grep '\*' | grep -v "$branch" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'
'가지가지' 카테고리의 다른 글
mac - intellij (idea) 백그라운드 cli 실행용 sh (0) | 2023.12.11 |
---|---|
netcat(nc) port forwarding (0) | 2023.04.14 |
redis sentinel. master 정보 확인 (0) | 2022.12.02 |
[kubernetes] deployment, service 테스트 (0) | 2022.05.18 |
[kubernetes] CLI 명령어 (0) | 2022.05.18 |
[kubernetes] k3s 설치 - on windows, ubuntu multipass (0) | 2022.04.27 |
powershell 원격 PC 파일 복사 (0) | 2021.10.26 |
docker, docker-compose 설치 on ubuntu (0) | 2021.03.12 |