netravnen
e7405a7d80
- Avoid pushing to branch named upstream. - Push only from local master to remote master branch. Even if other branch is currently checked out.
11 lines
314 B
Bash
Executable file
11 lines
314 B
Bash
Executable file
#!/bin/bash
|
|
|
|
ISO_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
|
|
|
# Commit latest version of ROA files
|
|
git add roa/*
|
|
git commit roa/* -m "Updated ROA files - $ISO_DATE"
|
|
|
|
# Push repository to every remote configured
|
|
for REMOTE in $(git remote | egrep -v upstream | paste -sd " " -) ; do git push $REMOTE master:master ; done
|