From 97325e360e6aaa7e8c473ba435231f4cda4dfdc5 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sun, 18 Sep 2022 21:15:25 +0100 Subject: Added initial revised scripts --- show_gitkey.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 show_gitkey.py (limited to 'show_gitkey.py') diff --git a/show_gitkey.py b/show_gitkey.py new file mode 100755 index 0000000..0ba9e25 --- /dev/null +++ b/show_gitkey.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python3 + +import configparser + +gitconf = configparser.ConfigParser() +gitconf.read("/srv/www/docker-cgit/gitscripts.conf") + +print("git remote add github https://%s:%s@github.com/%s/" % (gitconf.get("github", "user"), gitconf.get("github", "key"), gitconf.get("github", "user"))) -- cgit v1.2.3