I\'m trying to clone an entire repository onto my machine using linux. I used
git clone
I then went into the folder where i
I find this to be the simple solution to clone a git repository and all remote branches:
# Clone remote repository and all branches
git clone --mirror https://github.com/test/frontend.git frontend/.git
# Change into frontend directory
cd frontend
# Update git config
git config --unset core.bare
# Checkout master branch
git checkout master