-
-
Save viiftw/e3cd7d0d1b424957b54a36106dc4e9e0 to your computer and use it in GitHub Desktop.
How to clone git repo with all branches and tags
This file contains hidden or 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
| # Clone repo | |
| git clone --mirror [email protected]/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment