Pinned Loading
-
run this command from the folder whe...
run this command from the folder where all the subdirectories with git repositories are and this will create a new github repo for each one and push it all branches, commits and tags. You only have to replace ${GITHUB_ORG} for the actual name or deleted it if no ORG is needed. As a requirement it is using GitHub CLI https://cli.github.com/ 1for dir in *; do (cd "$dir" && git remote rm origin && gh repo create ${GITHUB_ORG}/"$dir" --private --source=. --remote=origin --push && git push --all && git push --tags); done
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.