File: push

package info (click to toggle)
borgmatic 2.0.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,752 kB
  • sloc: python: 58,506; sh: 150; makefile: 8; javascript: 5
file content (8 lines) | stat: -rwxr-xr-x 137 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#!/bin/bash

set -e

branch_name=$(git rev-parse --abbrev-ref HEAD)

git push -u github "$branch_name"
git push -u origin "$branch_name"