Skip to content

Instantly share code, notes, and snippets.

@zts
Created December 19, 2012 17:18
Show Gist options
  • Save zts/4338458 to your computer and use it in GitHub Desktop.
Save zts/4338458 to your computer and use it in GitHub Desktop.
How to configure git to push all branches automatically. This helps make "knife cookbook site install" do the right thing more often.
git config --add remote.origin.push 'refs/heads/*:refs/heads/*'
git config --add remote.origin.push 'refs/tags/*:refs/tags/*'
git config --add remote.origin.fetch 'refs/heads/*:refs/remotes/origin/*'
git config --add remote.origin.fetch 'refs/tags/*:refs/tags/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment