1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash -e if ! git remote | grep -x suckless; then git remote add suckless git://git.suckless.org/dwm fi # back up, since we are rewriting history git branch "$(date +%Y%m%d%H%M%S%N)" git fetch -p suckless git rebase -p suckless/master