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:
parent
3411950423
commit
792dd9b062
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue