提交 4c9e8bd0 创建 作者: 305350171@qq.com's avatar 305350171@qq.com

提交作业

上级 d7c06c2e
......@@ -14,6 +14,8 @@ if __name__ == "__main__":
execResult = os.system("git add . && git commit -m \"提交作业\"")
print("execResult=", execResult)
if execResult == 1:
print("-------- 本次提交没有任何变更,即使推送成功,也不代表远程一定有提交记录 --------")
print("-------- 请对项目中的文件进行修改后再进行提交-----------------------------------")
......@@ -23,10 +25,10 @@ if __name__ == "__main__":
print("-------------------------------------------------------------------------------")
execResult = os.system("git push")
if execResult == 1:
print("-------- 推送到 Git 远程库成功 --------")
if execResult == 0:
print("\n-------- 推送到 Git 远程库成功 --------")
else:
print("--- 推送到 Git 远程库失败!想解决推送到 Git 远程库失败问题?使用浏览器访问下面链接即可。 ---")
print("\n--- 推送到 Git 远程库失败!想解决推送到 Git 远程库失败问题?使用浏览器访问下面链接即可。 ---")
print("https://www.codecode.net/engintime/codecode/publicmanual/blob/master/GitFAQ.md")
print("复制方法:右键点击本窗口的标题栏,在菜单中选择“编辑”中的“标记”后,选中要复制的内容,按回车即可")
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论