I have this:
git clone --depth=1 app
cd app
git fetch origin
git checkout a119b1076dd45a88a3609c4f7893ef3d82f9a4ee
but it says:
As the docs for --depth
says,
Implies
--single-branch
unless--no-single-branch
is given
so if you want
to fetch the histories near the tips of all branches
give --no-single-branch
on your clone, or for one-off correction do the fetch yourself,
git fetch --depth=1 origin +refs/heads/*:refs/remotes/origin/*
or to retroactively shut off the single-branch setup
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
and then git fetch
.