borgmatic/scripts/push
Dan Helfman 36305c50b1
All checks were successful
the build was successful
Update push script to support branches.
2019-02-18 13:51:33 -08:00

9 lines
137 B
Bash
Executable File

#!/bin/bash
set -e
branch_name=$(git rev-parse --abbrev-ref HEAD)
git push -u github "$branch_name"
git push -u origin "$branch_name"