Skip to content

Bash script which have accept name of private repository and clone it in current folder.

Notifications You must be signed in to change notification settings

TMLowKey/clonme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Introduction

This Bash script accepts the name of a private repository and clones it into the current folder... because I am too lazy setting up ssh.

Setup

  1. Add Your GitHub Token and Username:

    • Open clonme.sh and add your private GitHub token in the GITHUB_TOKEN variable.
    • Add your GitHub username in the YOUR_USERNAME variable.
    GITHUB_TOKEN="your_github_token_here"
    YOUR_USERNAME="your_github_username_here"
  2. Make the Script Executable:

    • Change the permissions of the script to make it executable.
chmod +x clonme.sh
  1. Move the Script to /usr/local/bin:
    • Move the script to a directory that is included in your PATH, such as /usr/local/bin, and rename it to remove the .sh suffix.
sudo mv clonme.sh /usr/local/bin/clonme
  1. Source Your .bashrc:
    • Ensure your .bashrc is sourced to update the PATH.
source ~/.bashrc

Usage:

You can now use the script by simply typing:

clonme <name_of_your_repository>

About

Bash script which have accept name of private repository and clone it in current folder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages