Skip to content

Instantly share code, notes, and snippets.

@klickerlebnis
Last active June 18, 2020 09:42
Show Gist options
  • Save klickerlebnis/6777bb47dd57340e66f752b9d6ca5f8f to your computer and use it in GitHub Desktop.
Save klickerlebnis/6777bb47dd57340e66f752b9d6ca5f8f to your computer and use it in GitHub Desktop.
Clone all branches with bare option
git clone --bare CLONEURL .git
git config --bool core.bare false
git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment