Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Clone ALL branches of a git repo
# From Ray Villalobos' course on AngularJS2
# @link
git clone --bare .git # Clones a bare version of the repo
git config --bool core.bare false # Switch bare repo to normal version of the repo
git reset --hard # Repo resets to the master branch at the latest commit
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.