Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to clone git repo with all branches and tags
# Clone repo
git clone --mirror git@github.com/fernandoaleman/app.git app/.git
# Change into app directory
cd app
# Update git config
git config --unset core.bare
# Checkout master branch
git checkout master
@dadarom

This comment has been minimized.

Copy link

dadarom commented Aug 16, 2017

wonderful job,thks

@092780

This comment has been minimized.

Copy link

092780 commented Aug 23, 2017

Very interesting

@chandruxp

This comment has been minimized.

Copy link

chandruxp commented Apr 22, 2019

Nice !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.