Skip to content

Instantly share code, notes, and snippets.

View chwastek's full-sized avatar

Filip Chwastowski chwastek

View GitHub Profile
@chwastek
chwastek / gist:e16c439dbd74c6ca6796977a4f7d157b
Created October 26, 2018 10:24 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
awk '{split($0,a,"/"); print a[2]}' |
xargs git push origin --delete
@chwastek
chwastek / xcframework_create.sh
Last active March 15, 2024 13:10
Reusable script for creating an XCFramework from both Xcode and Terminal. You can run this script with framework's name, if needed (e.g. when running from Terminal).
#!/bin/sh
# -------------- config --------------
# Uncomment for debugging
set -x
# Set bash script to exit immediately if any commands fail
set -e