Skip to content

Instantly share code, notes, and snippets.

@fpigeonjr
Created January 28, 2017 03:41
Show Gist options
  • Save fpigeonjr/0ce978e8957eea9e030e65d3790bf05d to your computer and use it in GitHub Desktop.
Save fpigeonjr/0ce978e8957eea9e030e65d3790bf05d to your computer and use it in GitHub Desktop.
when you want to pull down a repo and all branches
# when you want to pull down a repo and all branches
git clone --bare ${github url} .git //pull downs all branches of repo
git config --bool core.bare false //convert to regular repo
git reset --hard //finishes process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment