Using the GitHub API, I can create a tree containing all the modified files to commit, specify base_treewhich will be updated with this change tree, and then commit it.
But, as the documentation says , a new tree can only contain paths for files with modes
100644for a file (blob), 100755for an executable file (blob), 040000for a subdirectory (tree), 160000for a submodule (commit), or 120000for a blob that sets the path of a symbolic link.
He does not say what to do if I want to mark some path as remote, as with git rm <path>.
source
share