1 2 3 4 5 6 7
#!/bin/sh set -eu url=$1 echo "url=${url}" \ | git credential fill \ | sed -En 's/^password=(.*)/\1/p'