The below command (git version 1.8.3) will convert the shallow clone to regular one
git fetch --unshallow
Then, to get access to all the branches on origin (thanks @Peter in the comments)
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
More Related Contents:
- What are the differences between git branch, fork, fetch, merge, rebase and clone?
- How to rebase local branch onto remote master
- Set Git submodule to shallow clone & sparse checkout?
- Git clone with custom SSH using GIT_SSH error
- git clone fails with “index-pack” failed?
- Can Git hook scripts be managed along with the repository?
- How can I view a git log of just one user’s commits?
- Is it possible to create a remote repo on GitHub from the CLI without opening browser?
- How to resolve git error: “Updates were rejected because the tip of your current branch is behind”
- Undo working copy modifications of one file in Git?
- How can I stop .gitignore from appearing in the list of untracked files?
- How much of a git sha is *generally* considered necessary to uniquely identify a change in a given codebase?
- Should I use SVN or Git? [closed]
- How do you get git to always pull from a specific branch?
- Is there a way to lock a branch in GIT
- What are the practical consequences of rewriting Git history?
- What is git-rerere and how does it work?
- ‘git pull origin mybranch’ leaves local mybranch N commits ahead of origin. Why?
- A way to restrict Git branch access?
- What are the “loose objects” that the Git GUI refers to?
- How to point Go module dependency in go.mod to a latest commit in a repo?
- Rolling back a remote Git repository
- Using a Jenkins pipeline to checkout multiple git repos into same job
- How to delete the last n commits on Github and locally?
- How do I execute a Git command without being in the repository?
- git fails to detect renaming
- Get commit message in Git hook
- How can I reduce the ever-increasing time to push a subtree?
- git status returns fatal: Not a git repository but .git exists and HEAD has proper permissions
- Delete all files and history from remote Git repo without deleting repo itself