Add_remote functionality to GitApi

This commit is contained in:
erik 2023-04-18 12:43:19 +02:00
parent 6dc078877c
commit ce1fd3f559

View file

@ -234,6 +234,10 @@ class GitApi():
self.system_api.run_checked('git', 'add', file_path)
return self.system_api.stdout
def add_remote(self, origin: str, url: str):
self.system_api.run_checked('git', 'remote', 'add', origin, url)
return self.system_api.stdout
def commit(self, commit_message: str):
self.system_api.run_checked(
'git', 'commit', '-m', commit_message)