I tried to add a new repository with the option "clone from url". It start the download but, almost immediately, it stops. I cannot see the old branches, it's like a new one. After some time, gives me this fatal error: 'git log' failed with code 128:'fatal: bad revision 'master'
How can I fix his bug? Thanks for reading and for the answers
This answer might have the solution you're looking for:
https://community.atlassian.com/t5/Sourcetree-questions/Re-git-status-failed-with-code-128-error-bad-signature-fatal/qaq-p/207698/comment-id/6023#M6023
If the problem is with the index as the staging area for commits (i.e. .git/index), you can simply remove the index (make a backup copy if you want), and then restore index to version in the last commit. On SourceTree shell run:
On OSX/Linux:
On Windows: