Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@FirePanther
Last active November 19, 2016 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FirePanther/f3f46ffe2fcd48a9021dcf80f29fa331 to your computer and use it in GitHub Desktop.
Save FirePanther/f3f46ffe2fcd48a9021dcf80f29fa331 to your computer and use it in GitHub Desktop.
Automatically adds a Finder "Git" Tag to all your repos
#!/bin/bash
# requires 'tag' binary from https://github.com/jdberry/tag
# auto git tag
{
find $HOME -type d \
! -path '*Trash' \
-name ".git" -exec dirname {} \; | while read line; do \
./tag -a Git "$line"; done
} &> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment