Skip to content

Instantly share code, notes, and snippets.

@runejuhl
Created April 3, 2017 09:22
Show Gist options
  • Save runejuhl/4ecfe7106416a2d5921a9b4df50284da to your computer and use it in GitHub Desktop.
Save runejuhl/4ecfe7106416a2d5921a9b4df50284da to your computer and use it in GitHub Desktop.
push extension for password-store
#!/bin/bash
set -o errexit
p=${PASSWORD_STORE_DIR:-~/.password-store}
for d in $(find -L $p -type d -name '.git' | xargs dirname); do
cd "$d"
( git fetch && git rebase )
git push
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment