There was an error while loading. Please reload this page.
1 parent c9a1d26 commit 6a859c0Copy full SHA for 6a859c0
hooks/post_gen_project.py
@@ -0,0 +1,16 @@
1
+import webbrowser
2
+import os
3
+
4
+gitinit = input("git init? [y]es / [n]o: ")
5
+if gitinit.lower() == 'y':
6
+# gitinit
7
+print("\ninitialized git repo")
8
+os.system("git init")
9
10
+# open browser to create repo
11
+print("create remote Github repo")
12
+webbrowser.open('https://github.com/new', new=2)
13
14
+# add remote
15
+remote = input("enter remote origin: ")
16
+os.system(f"git remote add origin {remote}")
0 commit comments