Recently, I noticed that for every small project or practice I create separate repo, which is just creates too many one-time repos.
Now, I want to merge them all into one GitHub repo, also I dont have all the repo locally
How can this be achieved?
If I can be so bold as to say... don't ;-)
Honestly, you'll gain nothing by doing so really and you'll just teach yourself a bad practice. You don't need to push git repositories if you don't want to, and you don't even need to use Github if you just want to share between a few of your own machines (you can just git over ssh). If you're creating an "umbrella" project that contains a bunch of related examples, that's different - but if it's just a bunch of random stuff, don't bother. If you want to keep the code, just archive it off somewhere and be done with it :-)
Siddarthan Sarumathi Pandian
Full Stack Dev at Agentdesks | Ex Hashnode | Ex Shippable | Ex Altair Engineering
blog.shippable.com/our-journey-to-microservices-a…
Read this very interesting write-up on the mono-repo vs the multi-repo argument.