How to push git

Hi,

I'm looking resources for git that will commit and push to bitbucket.
Any suggesting?

I've added this to my recipe.
Is that OK?

git "git-opt" do
repository "https://username@bitbucket.org/repo/centos7.git"
revision "master"
destination "/tmp/backup"
enable_submodules true
action :sync
end