Created
June 25, 2019 07:26
-
-
Save SnisarOnline/7557a290a382775355d0e87f4b57e617 to your computer and use it in GitHub Desktop.
перезапись комита с неправельным авторством
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) БЫСТРО ИЩЕМ ПОСЛЕДНИЙ КОММИТ С ВЕРНЫМИ КРЕДАМИ И КОПИРУЕМ ЕГО АЙДИ | |
2) ПИШЕМ | |
git reset --hard 6534hds8sda | |
где *6534hds8sda* и есть тот айдишник | |
3) ИСПРАВЛЯЕМ КОНФИГ: | |
git config --local user.name "ПРАВИЛЬНОЕ ИМЯ" | |
git config --local user.email "ПРАВИЛЬНОЕ МЫЛО" | |
4) ПРОВЕРЯЕМ ЧТО НАПИСАЛИ: | |
git config --local user.name | |
git config --local user.email | |
5) НАБИРАЕМ: | |
git push origin master -f | |
где master - название нужной ветки | |
6) СМОТРИМ НА ГИТЕ | |
7) ВЫ ВЕЛИКОЛЕПНЫ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment