Add_remote functionality to GitApi
This commit is contained in:
parent
6dc078877c
commit
ce1fd3f559
1 changed files with 4 additions and 0 deletions
|
@ -234,6 +234,10 @@ class GitApi():
|
||||||
self.system_api.run_checked('git', 'add', file_path)
|
self.system_api.run_checked('git', 'add', file_path)
|
||||||
return self.system_api.stdout
|
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):
|
def commit(self, commit_message: str):
|
||||||
self.system_api.run_checked(
|
self.system_api.run_checked(
|
||||||
'git', 'commit', '-m', commit_message)
|
'git', 'commit', '-m', commit_message)
|
||||||
|
|
Loading…
Reference in a new issue