Created
June 1, 2021 23:18
-
-
Save gregjhogan/c650284a5e25ad1224f0796fe88fc125 to your computer and use it in GitHub Desktop.
git config update to fetch all branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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