I know that it is possible to do using command line (delete first git commit)
But I'm not able to figure out how a similar thing can be done using github's API. Is it even possible?
I know that it is possible to do using command line (delete first git commit)
But I'm not able to figure out how a similar thing can be done using github's API. Is it even possible?
I am not exactly sure what you mean by "github's API", but if you delete any commit locally and push your changes to GitHub, the commit will be gone there as well.
Warning: Be aware that deleting an already pushed commit rewrites history and is thus very dangerous. Consider reverting/correcting your commit rather than deleting it.