Skip to content

This setup will speed up the process of making new GitHub projects

Notifications You must be signed in to change notification settings

Andreasgdp/Project-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation, setup & usage

This guide is for windows only. See https://github.com/KalleHallden/ProjectInitializationAutomation for MAC-version.

Install

  1. git clone https://github.com/Andreasgdp/create-easy-repositories.git
  2. cd create-easy-repositories
  3. pip install -r requirements.txt

Setup

create.py

  1. 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/"
  1. 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
  1. Place folder create-repositories here: C:\Users\<your username>\Documents\, like this: C:\Users\<your username>\Documents\create-repositories\.

create.bat

  1. Insert your PS username in the first line of the file create.bat, like this:
1   cd C:\Users\<your username>\Documents\create-repositories\
  1. 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
  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
  1. Change the last line to your code launcher command. If you use VS code it is code . and with VS code insiders it is code-insiders .. If you don't have such a command, you can just delete the line.
  2. Place file create.bat here: C:\Windows\System32. You will need administrator permission for this.

Usage

  1. To run the script type create <name of your new repository> in your preferred terminal.

About

This setup will speed up the process of making new GitHub projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published