You are on page 1of 1

We believe that no data has been lost, though in some cases, repository files were

changed. After updating account credentials, we recommend making use of `git`


commands to restore your repository to its previous state. If you have a full current copy
of the repository on your computer, you can force push to the current HEAD of your local
copy using:

`[git push](https://git-scm.com/docs/git-push) origin HEAD:master --force`

Otherwise, you can still clone the repository and make use of

 git reflog - https://git-scm.com/docs/git-reflog or


 git fsck - https://git-scm.com/docs/git-fsck to find your last commit and change the
HEAD.

As this is related to the use of `git`, GitLab does not have its own documentation or
examples, but we have found these articles that may be of use:

 git documentation - https://git-scm.com/doc


 How to move HEAD - https://stackoverflow.com/questions/34519665/how-to-
move-head-back-to-a-previous-location-detached-head-undo-
commits/34519716#34519716
 use git fsck to recover a deleted branch -
https://opensolitude.com/2012/02/29/recover-git-branch.htm