Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SnisarOnline/7557a290a382775355d0e87f4b57e617 to your computer and use it in GitHub Desktop.
Save SnisarOnline/7557a290a382775355d0e87f4b57e617 to your computer and use it in GitHub Desktop.
перезапись комита с неправельным авторством
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