i want to clone a repository, change a file and push these changed file back to the origin branch. I can clone the repo with
repo = pygit2.clone_repository(repo_url, local_dir, checkout_branch="test_it")
but what do i need to do now to push the changes to the remote? I want only commit the changes for one specific file, even if more files are changed.
Hope someone can help me. TIA
First stage only
file_path
:Then do a commit:
and last push the repo as described in Unable to ssh push in pygit2