Created
May 7, 2023 01:48
-
-
Save Nathius262/d86a7cb70558d198669649486c0e54ee to your computer and use it in GitHub Desktop.
Cloning a full repo to your device
This file contains 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 all branches in a repo using | |
git clone --mirror <url> | |
# create a folder on your device rename the cloned folder to .git and move to the created folder using the command: | |
mkdir <repo folder name> | |
move repository.git <repo folder name>/.git | |
cd <repo folder name> | |
git checkout <branch name>. | |
# if you encontered any error at this point, Remove "bare=true" from .git/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment