Add the mention of push --force-with-lease (#1611)
`--force-with-lease` is safer than `--force` as it checks that you are up-to-date with the remote branch.
This commit is contained in:
parent
9148ed237e
commit
6cf3493058
|
@ -95,6 +95,9 @@ git reset --hard
|
||||||
```bash
|
```bash
|
||||||
git reset --hard $commit_id
|
git reset --hard $commit_id
|
||||||
|
|
||||||
# Now push to your branch
|
# Now push safely to your branch
|
||||||
|
git push --force-with-lease
|
||||||
|
|
||||||
|
# Or push brutally to your branch
|
||||||
git push --force
|
git push --force
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue