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

Popular posts from this blog

javascript - How to diff two immutable objects -

javascript - React.js: onClick function from child to parent -

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -