This guide is for windows only. See https://github.com/KalleHallden/ProjectInitializationAutomation for MAC-version.
git clone https://github.com/Andreasgdp/create-easy-repositories.git
cd create-easy-repositories
pip install -r requirements.txt
- Set the path variable in the file
create-repositories\create.py
(line 5) to your desired projects folder. For example:
5 path = "C:/Users/<your username>/Documents/Projects/"
- Set the username and password variables to your github username and password in
create-repositories\create.py
(line 7 & 8). For example:
7 username = "<your GitHub username>" #Insert your github username here
8 password = "<your GitHub password>" #Insert your github password here
- Place folder
create-repositories
here:C:\Users\<your username>\Documents\
, like this:C:\Users\<your username>\Documents\create-repositories\
.
- Insert your PS username in the first line of the file
create.bat
, like this:
1 cd C:\Users\<your username>\Documents\create-repositories\
- Change the path in the third line to match the path for your projects in the
create.py
file, like this (%1
is taking the second argument that you type after create. See Usage):
3 cd C:\Users\<your username>\Documents\Projects\%1
- Change the fith line so that your GitHub username is in the link. like this:
5 git remote add origin https://github.com/<your GitHub username>/%1.git
- Change the last line to your code launcher command. If you use VS code it is
code .
and with VS code insiders it iscode-insiders .
. If you don't have such a command, you can just delete the line. - Place file
create.bat
here:C:\Windows\System32
. You will need administrator permission for this.
- To run the script type
create <name of your new repository>
in your preferred terminal.