Skip to content

Commit 7a3e73a

Browse files
committed
Merge branch 'main' into 37-investigation-on-architectural-design-of-the-weapons
2 parents 106fb5d + 6afccc3 commit 7a3e73a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/advanced_git_commands.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# New commands
2+
3+
### Delete local branches that don't exist in the remote anymore
4+
git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d

0 commit comments

Comments
 (0)