use `--force-with-lease`

`--force-with-lease` is less dangerous:

from the doccs:

> --force-with-lease alone, without specifying the details, will protect all remote refs that are going to be updated 
> by requiring their current value to be the same.


           as the remote-tracking branch we have for them.
This commit is contained in:
Thomas Güttler 2023-03-30 16:27:08 +02:00 committed by GitHub
parent 3411950423
commit 792dd9b062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ To squash your commits, perform an [interactive rebase](https://git-scm.com/book
4. Force push your changes to your remote branch:
```
git push --force
git push --force-with-lease
```
For mass automated fixups such as automated doc formatting, use one or more