0

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?

Community
  • 1
  • 1
Jai Pandya
  • 2,129
  • 18
  • 29

1 Answers1

0

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.

Rahel Lüthy
  • 6,837
  • 3
  • 36
  • 51
  • That's what I meant by command line. It is explained pretty well if you follow the link I provided in my question. I'm working on a project that requires deleting the root commit from a repo using Github API. – Jai Pandya Jan 10 '15 at 05:15