How to revert back to previous commit and make it the default branch Ignoring any further commits

Advertisements I want to revert back to a previous commit and make it my new default branch in a clean way. Ignoring any future commits. this what I did: git checkout <commit-hash> git branch new-main How to make the new-main branch the default branch and make the development continue from there? >Solution : IF (not… Read More How to revert back to previous commit and make it the default branch Ignoring any further commits

Check if public GitHub repository exists without using api, using bash?

Advertisements Context After having applied this solution, I noticed I got rate limiting after calling the function 5 times in a span of +-3 minutes. I expect this may have been because someone in the location/ip in which I was testing the function, was already consuming some of the API bandwith. So I added a… Read More Check if public GitHub repository exists without using api, using bash?