From 3b6e8769f95c84517aa4baaee3f6677c29c95bff Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 4 May 2020 15:39:58 -0400 Subject: Add git-password script to get a password from git-credential --- home/.local/bin/git-password | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 home/.local/bin/git-password (limited to 'home') diff --git a/home/.local/bin/git-password b/home/.local/bin/git-password new file mode 100755 index 00000000..41351e38 --- /dev/null +++ b/home/.local/bin/git-password @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +url=$1 +echo "url=${url}" \ + | git credential fill \ + | sed -En 's/^password=(.*)/\1/p' -- cgit 1.4.1