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 | |
addremote() { | |
local USER_NAME="$1" ; local REMOTE_NAME="$2" ; local REPO_NAME="$3" | |
echo "adding remote ${REMOTE_NAME} to ${REPO_NAME}..." | |
git remote add "${REMOTE_NAME}" "git@github.com:${USER_NAME}/${REPO_NAME}.git" | |
git remote show "${REMOTE_NAME}" |