He procrastinated by trying out cool new software (a classic symptom of a project that is not going properly) and lost a lot of time because of the mistaken manner in which he did it.
He should get back on track by focusing on the real meat of his project and use the simplest bitbucket he can find for it.