Using the GitHub API, I can create a tree containing all the modified files for a commit, specify a base_tree
that will be updated with this tree of changes and then commit it.
But, as the documentation says, the new tree can contain only paths for files with the modes
100644
for file (blob),100755
for executable (blob),040000
for subdirectory (tree),160000
for submodule (commit), or120000
for a blob that specifies the path of a symlink.
It doesn't say what should I do if I want to mark some path as deleted, as with git rm <path>
.