For earlier Bamboo versions, you can refer to the script based solution outlined in the dedicated KB article How to commit and push to a Git repo during a build.
Except for the variable syntax, there is nothing fundamentally Linux specific in that solution I think:
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events