Change the Remote Origin
git remote add new-origin git@github.com:username/your-new-repo.gitVerify the Remote location (optional)
git remote -vPush all branches to the remote repo
git push new-origin --all
git push new-origin --tagsFetch the origin
git fetch originCreate local tracting branches for remote repo
for branch in $(git branch -r | grep 'origin/' | grep -v 'origin/HEAD' | sed 's/origin\///'); do
git checkout -b "$branch" "origin/$branch"
donePush all branches individually
for branch in $(git branch | sed 's/\* //'); do
git push new-origin "$branch"
done