I am here to ask how to rename directory through api
I have done with something reconstructing repo tree
when create new tree if i send the base tree as empty string it clear old tree and their commits
if i send the basetree it merge old tree with new tree
how to solve this ?
Making changes via the Git Data API is extremely complicated. Personally, I find it much easier to clone the repository, make the changes locally, commit them, then push the changes back to the remote repository, than to make the same changes using the Git Data API. But if you really want to rename a directory via the Git Data API, then I believe this is what you would have to do:
You can see a similar example in this previous post I made.
I hope that helps.