added in Print function the port
This commit is contained in:
parent
6e78099872
commit
a2118e0e01
4
main.py
4
main.py
@ -41,7 +41,7 @@ commands = [
|
|||||||
"touch README.txt",
|
"touch README.txt",
|
||||||
"git add .",
|
"git add .",
|
||||||
'git commit -am "INIT"',
|
'git commit -am "INIT"',
|
||||||
f"git remote add origin ssh://{username}@{hostname}/share/Public/git/{project_name}.git"
|
f"git remote add origin ssh://{username}@{hostname}:{port}/share/Public/git/{project_name}.git"
|
||||||
]
|
]
|
||||||
|
|
||||||
# SSH-Verbindung herstellen und Befehle ausführen
|
# SSH-Verbindung herstellen und Befehle ausführen
|
||||||
@ -66,6 +66,6 @@ else:
|
|||||||
print("Hier sind Hilfreiche Befehle:")
|
print("Hier sind Hilfreiche Befehle:")
|
||||||
print(f"\ncd share/Public/git/{project_name}")
|
print(f"\ncd share/Public/git/{project_name}")
|
||||||
print("\ngit push origin master")
|
print("\ngit push origin master")
|
||||||
print(f'\ngit clone "ssh://yannick@192.168.2.106/share/Public/git/{project_name}.git"')
|
print(f'\ngit clone "ssh://yannick@192.168.2.106:{port}/share/Public/git/{project_name}.git"')
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print(f"Leider ist da was Fehlgeschlagen: {e}")
|
print(f"Leider ist da was Fehlgeschlagen: {e}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user