aboutsummaryrefslogtreecommitdiffstats
path: root/show_gitkey.py
diff options
context:
space:
mode:
Diffstat (limited to 'show_gitkey.py')
-rwxr-xr-xshow_gitkey.py8
1 files changed, 8 insertions, 0 deletions
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")))