Git Repo的Shell脚本

时间:2015-07-14 18:50:34

标签: python shell

我需要创建一个shell脚本(run.sh)文件,该文件执行Git存储库中存在的python代码并将其附加到repo。由于这是我的第一次,我对如何使用什么语言创建run.sh文件感到困惑。

1 个答案:

答案 0 :(得分:0)

假设输出是stdout,这样的事情可能会起作用:

#! /bin/bash

python main.py >> log
git add log
git commit -m 'update log'
git push -u origin

我不得不承认,我不确定这是你要求的。请澄清:)