diff --git a/README.md b/README.md index 9ab3cf1..2ca8f50 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Adding Remote name](#adding-remote-name) * [Show the author, time and last revision made to each line of a given file](#show-the-author-time-and-last-revision-made-to-each-line-of-a-given-file) * [Group commits by authors and title](#group-commits-by-authors-and-title) +* [Forced push but still ensure you don't overwrite other's work](#forced-push-but-still-ensure-you-dont-overwrite-others-work) @@ -900,5 +901,10 @@ git blame git shortlog ``` +## Forced push but still ensure you don't overwrite other's work +```sh +git push --force-with-lease +``` + diff --git a/tips.json b/tips.json index 08550e3..75dd558 100644 --- a/tips.json +++ b/tips.json @@ -389,4 +389,7 @@ }, { "title": "Group commits by authors and title", "tip": "git shortlog" +}, { + "title": "Forced push but still ensure you don't overwrite other's work", + "tip": "git push --force-with-lease " }]