aboutsummaryrefslogtreecommitdiffstats
path: root/show_gitkey.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-09-18 21:15:25 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2022-09-18 21:15:25 +0100
commit97325e360e6aaa7e8c473ba435231f4cda4dfdc5 (patch)
tree34ef1f08843502e969793fe6b5e2d7d9042b3cc4 /show_gitkey.py
parentbd5e941e73bb4c3ef9949d21690295a174949b96 (diff)
downloadgit-scripts-97325e360e6aaa7e8c473ba435231f4cda4dfdc5.tar.gz
git-scripts-97325e360e6aaa7e8c473ba435231f4cda4dfdc5.zip
Added initial revised scripts
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")))