-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_upload.py
More file actions
39 lines (27 loc) · 997 Bytes
/
git_upload.py
File metadata and controls
39 lines (27 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python
# coding=utf-8
import zipfile
import shutil
import os
import os.path
import time
import datetime
import sys
import socket
# remote: Permission to Jaykie/PythonUnity.git denied to helenmooncom.
def upload():
# os.system("git config --global credential.helper store")
# os.system("git config --global user.email \"chyfemail163@163.com\"")
# os.system("git config --global user.name \"mooncode163\"")
# os.system("git config --global user.password \"Qianlizhiwai1\"")
os.system("git add .")
os.system("git commit -m \"ui\"")
# os.system("git commit")
# git branch -al 查看本地和远程的所有分支。
os.system("git branch -al")
# os.system("git push -u origin master")
os.system("git push -f https://mooncode163:Qianlizhiwai1@github.com/mooncode163/PythonUnity.git")
# 主函数的实现
if __name__ == "__main__":
upload()
print("git_upload end")