Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b49a628

Browse files
Update gitcommands.py
1 parent 520ca0f commit b49a628

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎Github-Automation/gitcommands.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ def commit(filelist):
3636
filelist.remove(file)
3737
call('git commit -m "' + msg + '"')
3838
call('cls' , shell=True)
39+
40+
def setremote(url):
41+
call('git remote add origin ' + url)
42+
43+
def setBranch(branch):
44+
call('git branch -M ' + branch)
45+
3946
# git push
4047
def push(url , branch):
4148
call('git push -u ' + url + ' ' + branch)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /