- import subprocess
- a = ['path="/Users/hirano/mygit/xbp/"',
- 'clear',
- 'cd $path',
- 'echo ""',
- 'echo $path',
- 'git add .',
- 'git commit -m "auto commit"',
- 'git push']
- subprocess.call(a, shell=True)