Skip to content

Instantly share code, notes, and snippets.

View batmat's full-sized avatar
😞
I may be very very slow to respond.

Baptiste Mathus batmat

😞
I may be very very slow to respond.
View GitHub Profile
#!/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
#!/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