Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Created June 1, 2021 23:18
Show Gist options
  • Save gregjhogan/c650284a5e25ad1224f0796fe88fc125 to your computer and use it in GitHub Desktop.
Save gregjhogan/c650284a5e25ad1224f0796fe88fc125 to your computer and use it in GitHub Desktop.
git config update to fetch all branches
# get config for which branches will get pulled
git config --get remote.origin.fetch
# e.g. only master: +refs/heads/master:refs/remotes/origin/master
# set config to pull all branches
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment