Recording on using this tool: https://youtu.be/q0_MMK8AS8E
This script will take a git repository and clone it to your local machine but under your own repository in GitHub.
- Download
git_clone.sh
file and save to the directory to clone repository on your computer - Create a repo on your GitHub where the repo will live github.com/new
and have your repository's URL (ends with
.git
) - Have the original repository's URL (ends with
.git
) - Run the script on your computer with
sh git_clone.sh
- Follow directions that will proceed to clone, update repo with your GitHub URL, and push to GitHub
You can proceed to do the same thing by doing this in the terminal:
git clone https://github.com/OTHER_USER/ORIG_REPO.git
cd ORIG_REPO
git remote set-url origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
git push -u origin