Update using-git-rebase-on-the-command-line.md (#2048)

Co-authored-by: hubwriter <hubwriter@github.com>
This commit is contained in:
Elias Skogevall 2021-01-14 18:17:32 +01:00 коммит произвёл GitHub
Родитель fe00a6e8dc
Коммит c7c56148ed
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -124,6 +124,10 @@ As before, Git is showing the commit message for you to edit. You can change the
Since you've altered Git history, the usual `git push origin` **will not** work. You'll need to modify the command by "force-pushing" your latest changes:
```shell
# Don't override changes
$ git push origin main --force-with-lease
# Override changes
$ git push origin main --force
```