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 | |
# git-cleanup-repo | |
# | |
# Author: Rob Miller <rob@bigfish.co.uk> | |
# Adapted from the original by Yorick Sijsling | |
CLEANUP_REMOTE=${CLEANUP_REMOTE:-'no'} | |
git checkout master &> /dev/null |
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
##################### | |
# ssh-agent stuff # | |
##################### | |
# get the ssh agent started | |
SSH_ENV="$HOME/.ssh/environment" | |
KEY_LIST="~/.ssh/id_rsa ~/.ssh/first.lastnameJan2016.pem" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" |