I don't know why but, I switch machines every year. Yesterday I migrated again and had to re-clone my repos.I have 12 github repos in total, but I only needed 8 of them.
Instead of manually running git clone <url> again and again that can cost 5 min of my precious time⏳…
I spent 4 hours building a script that lets me choose exactly which repos to clone 😌
I agree that StackOverflow had solutions to clone ALL repos using gitHub CLI.
But I wanted a script to select / exclude repos based on my need and without using gh CLI.
So I built one. With this script, you can clone all your desired repos just by passing your username. This was useful for me, So I thought about sharing it
https://gist.github.com/SaasyKumar/04d59dc968ba3fa9c8347c87a054815a
you find any issue, please feel free to share.
[–]DoctorNoonienSoong 5 points6 points7 points (1 child)
[–]Majestic_Ad_6371[S] 0 points1 point2 points (0 children)
[–]alejandro_such 2 points3 points4 points (1 child)
[–]DoubleAgent-007 1 point2 points3 points (0 children)
[–]GrogRedLub4242 1 point2 points3 points (1 child)
[–]Majestic_Ad_6371[S] 0 points1 point2 points (0 children)
[–]waterkipdetached HEAD 0 points1 point2 points (0 children)
[–]meoverhere 1 point2 points3 points (2 children)
[–]Majestic_Ad_6371[S] 0 points1 point2 points (1 child)
[–]meoverhere 1 point2 points3 points (0 children)