This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Argument = -h -v -i groupId:artifactId:version -c classifier -p packaging -r repository | |
#shopt -o -s xtrace | |
# Define Nexus Configuration | |
NEXUS_BASE=http://repository.example.com:8081/nexus | |
REST_PATH=/service/local | |
ART_REDIR=/artifact/maven/redirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This post-commit hook is designed to serve as a central script for any repository you want to backup (via git bundle) | |
# based on the original idea of David Gageot https://gist.github.com/736547 | |
# Backup configuration | |
backupRoot="$HOME/Mes documents/My Dropbox/gitbackup/" | |
#howManyTime=--since=5.days | |
howManyTime=-10 | |
branchToBackup=master |