隨着git status我可以得到有關未公開提交的計數信息: » git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
# (use "git push" to publish your local commits)
#
nothing to commit, wor
我正在嘗試做一個python腳本來檢查我的git本地工作文件夾中的更改,並自動將它們推送到在線回購站。目前只能手動使用git來完成它。我想知道,腳本需要什麼來做到這一點,而無需人工干預。 我輸入我外殼的命令是: #for checking the status, and determining if there are untracked files
git status
#if there