This file contains hidden or 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
FROM rust:alpine | |
RUN apk add --no-cache \ | |
bash \ | |
binutils-gold \ | |
ca-certificates \ | |
clang \ | |
curl \ | |
g++ \ | |
git \ |
This file contains hidden or 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
→ git remote prune origin | |
→ git branch --merged | grep -v "\*" | xargs -n 1 git branch -d | |
# Remember to do this from the master branch | |
# If you run it from a feature branch the master branch gets deleted. | |
→ git branch --merged | grep -v "\*" | xargs -n 1 git branch -d | |
Deleted branch master (was 644eb76). | |
You can recheckout master branch | |
→ git checkout -b master origin/master |