1
0
mirror of synced 2025-12-22 11:26:57 -05:00

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
committed by GitHub
parent fe00a6e8dc
commit c7c56148ed

View File

@@ -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
```