Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Nathius262/d86a7cb70558d198669649486c0e54ee to your computer and use it in GitHub Desktop.
Save Nathius262/d86a7cb70558d198669649486c0e54ee to your computer and use it in GitHub Desktop.
Cloning a full repo to your device
# 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