I'm trying to chain system commands in bash onto my git commands.
git commit -m cat commit_message.txt
git add -A && git commit -m cat ~/my_project/commit_message.txt && git push origin dev && git push heroku-staging master
git commit has a
--file) that does exactly what you want, without using any shell magic: just use
git commit -F commit_message.txt.