git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>de.danielschneller.discoverydactivedirectory</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/sbin/discoveryutil</string> | |
<string>activedirectory</string> |
#!/bin/bash -x | |
REPO="${1}" | |
SHA1="${2}" | |
OPEN="${3}" | |
repofragment=$(cd "$REPO"; git remote -v | grep origin | grep push | sed -e 's/.*github\.com.\(.*\)\.git.*/\1/') | |
url="https://github.com/${repofragment}/commit/${SHA1}" | |
echo "${url}" | pbcopy | |
[ -z "${OPEN}" ] || open "$url" |