Rename a file with github api? -
i thought update file method of github api used rename file (by providing new path parameter) not seem work.
the way rename delete file , create similar 1 new name?
i thought update file method of github api used rename file (by providing new path parameter) not seem work.
there's no way rename file single request api.
the way rename delete file , create similar 1 new name?
that's 1 way, downside 2 commits in history (one delete, , 1 create).
a different way use low-level git api:
https://developer.github.com/v3/git/
with that, can modify tree entry containing blob list under different name, create new commit tree, , update branch point new commit. whole process requires more api requests, single commit rename.
Comments
Post a Comment