Merge pull request #120 from weirdpattern/master

Add git push --force-with-lease tip
This commit is contained in:
hemanth.hm 2016-08-11 10:29:24 +05:30 committed by GitHub
commit 128393ea7c
2 changed files with 9 additions and 0 deletions

View File

@ -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)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -900,5 +901,10 @@ git blame <file-name>
git shortlog
```
## Forced push but still ensure you don't overwrite other's work
```sh
git push --force-with-lease <remote-name> <branch-name>
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -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 <remote-name> <branch-name>"
}]