Git: шпаргалки
https://ru.stackoverflow.com/questions/431520/%D0%9A%D0%B0%D0%BA-%D0%B2%... - переключения на коммиты
receive.denyCurrentBranch:
http://jetwalker.blogspot.ru/2012/01/receivedenycurrentbranch.html
https://stackoverflow.com/questions/8985782/git-push-fails-refusing-to-u...
https://stackoverflow.com/questions/11117823/git-push-error-refusing-to-...
https://stackoverflow.com/questions/3221859/cannot-push-into-git-repository
Шпаргалки полезные:
http://webhamster.ru/site/page/index/articles/comp/216
http://eax.me/git-commands/
https://community.atlassian.com/t5/Bitbucket-questions/quot-Warning-Perm...
добавить ssh-ключ в битбакет
https://russianpenguin.ru/2014/07/27/git-%D0%B2%D1%8B%D0%B4%D0%B5%D0%BB%... - про bare-репозитории
https://stackoverflow.com/questions/13306435/repository-access-denied-ac... - по поводу SSH-ключей в битбакете.
https://bitbucket.org/account/user/alinghi/ssh-keys/ - тут добавлять ключи в общем нужно, чтобы обмениваться.
https://habrahabr.ru/post/273897/ - шпаргалки
Отменить последний pull:
https://ru.stackoverflow.com/questions/361124/%D0%9A%D0%B0%D0%BA-%D0%BE%...
https://toster.ru/q/230700
git reset --hard [нужный хэш]