My question is quite simple but I can't find any solution.
I use electron-react-boilerplate
for a project, so I cloned it using ---depth=1
.
Then, I was failing to push my changed to my own origin (a BitBucket repo), because I was developping on a shallow repo.
So I used git fetch --unshallow upstream
(upstream being the boilerplate origin), however, as expected, it loaded all the commits from the boilerplate, which I don't want.
This makes the git tree dirty, is there a way to reverse the git fetch --unshallow
command ? Reflog gives nothing.
Moreover, why did I need the unshallow in the first place, since I was already pushing on my own repo ?