Skip to content

soliveirarm/clone-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Clone Repo

Simple python script for devs how want to automate the process of cloning your github repository, just type in the number of your repo (listed in terminal) and bam: you're done!

Requirements

  • Python has to be installed

  • Pip (usually comes with python)

  • requests lib to make the requests to the Github API

    • To install it, just open up a terminal and type this:

      pip install requests

**: VS Code as your IDE (if you wanna open it with code after it's cloned, totally optional tho)

How to use

  1. Open clone_repo.py with VS Code (or another IDE of your preference)

  2. Change the USERNAME constant to your own

    USERNAME = "soliveirarm"  # change to your own username
  3. Run it with python, that's it!

Tweaks

  • By default the reposity is saved in 'Desktop/Projects', if you want to change the the PROJECTS_PATH constant to the path you want.

    PROJECTS_PATH = f"{Path.home()}/Desktop/Projects"  # change if you want the clone repos on another folder

Download the script

Final Thoughts

  • ChatGPT basically made this version for me, I'm quite lazy these days, sorryyy 😝
  • If you see anything weird, please create an issue so I can solve it, thankss

About

Simple python script for devs how want to automate the process of cloning a github reposity

Topics

Resources

Stars

Watchers

Forks

Languages