diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-09-18 21:15:25 +0100 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-09-18 21:15:25 +0100 |
commit | 97325e360e6aaa7e8c473ba435231f4cda4dfdc5 (patch) | |
tree | 34ef1f08843502e969793fe6b5e2d7d9042b3cc4 /show_gitkey.py | |
parent | bd5e941e73bb4c3ef9949d21690295a174949b96 (diff) | |
download | git-scripts-97325e360e6aaa7e8c473ba435231f4cda4dfdc5.tar.gz git-scripts-97325e360e6aaa7e8c473ba435231f4cda4dfdc5.zip |
Added initial revised scripts
Diffstat (limited to 'show_gitkey.py')
-rwxr-xr-x | show_gitkey.py | 8 |
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"))) |