Clone Github repository with ease.
Clone Github repository in a manageable way
.git
folder..git
folder and save internet data charges.-w
flag-p
flag (git pull origin)git
CLI must be installed on machine.Download and run bash clone.sh <github repository url> [-w]
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 |
clone.sh
file
log.txt
is stored in .xio
folder.# 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
"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
jxmked
Username A
Username B
https://github.com/jxmked/Repo_Clone
- Main branchhttps://github.com/jxmked/Repo_Clone/tree/gh-pages
- gh-pages branchhttps://github.com/jxmked/Script-Thing
- Main branchmkdir
curl
git
mv