diff --git a/README.md b/README.md index de14a4f..8c35adc 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Search Commit log across all branches for given text](#search-commit-log-across-all-branches-for-given-text) * [Get first commit in a branch (from master)](#get-first-commit-in-a-branch-from-master) * [Unstaging Staged file](#unstaging-staged-file) +* [Force push to Remote Repository](#force-push-to-remote-repository) @@ -852,5 +853,10 @@ git log master.. --oneline | tail -1 git reset HEAD ``` +## Force push to Remote Repository +```sh +git push -f +``` + diff --git a/tips.json b/tips.json index 37ff226..d6dcefa 100644 --- a/tips.json +++ b/tips.json @@ -373,4 +373,7 @@ }, { "title":"Unstaging Staged file", "tip": "git reset HEAD " +}, { + "title": "Force push to Remote Repository", + "tip": "git push -f " }]