Skip to content

Instantly share code, notes, and snippets.

@jameskbride
Created December 27, 2020 15:29
Show Gist options
  • Save jameskbride/bbe531f3b6b9e040e1403eba50811362 to your computer and use it in GitHub Desktop.
Save jameskbride/bbe531f3b6b9e040e1403eba50811362 to your computer and use it in GitHub Desktop.
Fetch all remote branches
#!/bin/bash
git checkout --detach
git fetch origin '+refs/heads/*:refs/heads/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment