Simple bash script that’s create new gitlab or github project and clone created project to same named folder on local machine.
Installation
Clone to directory of choice:
git clone https://github.com/LOCOSP/git-projetcs-automate.git
Give permissions to
and automatelab
fileautomatehub
chmod +x automatelab
chmod +x automatehub
Copy
file into home directory..automate
Edit
file..automate
Done.
Usage
To run script navigate to script directory and type if the project should be created on GitLab
./automatelab [ new project name ]
and if should be created on GitHub
./automatehub [ new project name ]
To use the script globally create link in
(as root):/usr/bin
ln -s /full/path/to/automatelab /usr/bin
ln -s /full/path/to/automatehub /usr/bin
after that You can call
for GitLab project and automatelab [ new project name ]
for GitHub project form any directory You are.automatehub [ new project name ]