e2faef48d6
- disabled git reset --hard - improved lno to conditionally use newlines - get git-dir appropriately
6 lines
225 B
Bash
Executable file
6 lines
225 B
Bash
Executable file
#!/bin/sh
|
|
# Cleans up remote branches and removes branches where the remote-tracking branches got removed.
|
|
git fetch -p &&
|
|
for branch in `git branch -vv | grep ": gone]" | cut -d" " -f3`
|
|
do git branch -D "$branch"
|
|
done
|