Skip to content

Commit f5bc45e

Browse files
committed
📝 Update git section
1 parent 0f1e428 commit f5bc45e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/productive/git/workflows/clean-history.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ present the following scenario:
6363
31a140a (my-feature) Add test for my new feature
6464
132ae9b Add new feature
6565
66-
#. The changes can now be sent to our remote branch with ``git push -f``.
66+
#. The changes can now be pushed to our remote branch using ``git push
67+
--force-with-lease``. ``--force-with-lease`` option ensures that any existing
68+
changes on the remote branch are not overwritten.
6769

6870
…with ``git commit --fixup`` and ``git rebase --autosquash``
6971
------------------------------------------------------------

0 commit comments

Comments
 (0)