Skip to content

Instantly share code, notes, and snippets.

@raftastrock
raftastrock / gremt
Created February 8, 2017 22:40 — forked from westonhancock/gremt
#!/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}"