I am trying to upload a Ruby app to Heroku. I start with git init and then I type git add . and then I use git commit -m initial commit. <
git init
git add .
git commit -m initial commit
if there are anybodys using python os to invoke git,u can use os.system('git commit -m " '+str(comment)+'"')