(self, local_path: str, username: str, email: str, message: str)
| 81 | repo.get_worktree().unstage(filename.decode() for filename in staged_files) |
| 82 | |
| 83 | def commit(self, local_path: str, username: str, email: str, message: str) -> str: |
| 84 | author = f"{username} <{email}>".encode() |
| 85 | commit_hash = porcelain.commit(repo=local_path, author=author, committer=author, message=message.encode()) |
| 86 | return commit_hash.decode() |
| 87 | |
| 88 | def push( |
| 89 | self, local_path: str, remote_url: str, branch: str, username: str, password: str, force: bool = False |