- Open the
gclone.sh
file and add your github Personal Access Token (PAT) and Username part of the code.
switch
git clone https://[github-PAT]@github.com/[Username]/"$1".git
for
git clone https://[email protected]/JohnDoe45/"$1".git
The above is an example. To create your PAT check here
- Run the
install
file, to install the command
And you're done.
- Run
gclone repo-name
to clone a repository.
Example
gclone my-first-repo
Simply run the uninstall
executable file to uninstall.