Coder Social home page Coder Social logo

jxmked / repo_clone Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 131 KB

Clone Github repository and automatically place them in your desired location using Termux.

Home Page: https://jxmked.github.io/Repo_Clone

License: MIT License

Shell 100.00%
git-cli git-clone shell termux portfolio-include

repo_clone's Introduction

About

Clone Github repository in a manageable way

Features

  • Clone Github repository with .git folder.
  • Clone Github repository without .git folder and save internet data charges.
  • Clone Github same repository from different branch
  • Direct pasting copied URL from browser to CLI
  • Clone your private repository using -w flag
  • Pull (Update) using -p flag (git pull origin)

Requirements

  • git CLI must be installed on machine.
  • Internet connection required.

Installation and Use

Download and run bash clone.sh <github repository url> [-w]

Parameters

Commands Basic Description is Required
%URl% Github repository to clone Required
-w Clone with .git folder for later use Optional
-p Pull (Update) Existing Repository in your local machine from Github Repository Optional
-clear Clear Temporary Folder Optional

Notes:

  • Github token is required to clone repository with data and private repository.
  • Set your own directory inside of the clone.sh file
    • Must be change to already existing directory.
  • log.txt is stored in .xio folder.
  • Master/Main branch is default
# No .git folder or git commit history
bash clone.sh https://github.com/jxmked/Repo_Clone 
# Or
# Download with .git folder or commit history.
# It also allow to download private repository
bash clone.sh https://github.com/jxmked/Repo_Clone -w

About .git folder

"The .git folder contains all information that is necessary for the project and all information relating commits, remote repository address, etc. It also contains a log that stores the commit history. This log can help you to roll back to the desired version of the code." - Google

Tested in...

  • Android Termux.

Downloaded repositories will look like this...

  • Downloads
    • jxmked

      • Repo_Clone (master)
      • C-language (master)
    • Username A

      • Repo (...)
      • Repo (...)
    • Username B

      • Repo (...)
      • Repo (...)
      • Repo (...)

Example links can be clone...

  • https://github.com/jxmked/Repo_Clone - Main branch
  • https://github.com/jxmked/Repo_Clone/tree/gh-pages - gh-pages branch
  • https://github.com/jxmked/Script-Thing - Main branch

Function has been used.

  • mkdir
  • curl
  • git
  • mv

Created with love and frustration by Jovan

Model:SH-CSA-0009 - Advance Repository Cloner API

repo_clone's People

Contributors

jxmked avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.