File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
123
123
* [ Search Commit log across all branches for given text] ( #search-commit-log-across-all-branches-for-given-text )
124
124
* [ Get first commit in a branch (from master)] ( #get-first-commit-in-a-branch-from-master )
125
125
* [ Unstaging Staged file] ( #unstaging-staged-file )
126
+ * [ Force push to Remote Repository] ( #force-push-to-remote-repository )
126
127
127
128
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
128
129
<!-- @doxie.inject end toc -->
@@ -852,5 +853,10 @@ git log master..<branch-name> --oneline | tail -1
852
853
git reset HEAD < file-name>
853
854
```
854
855
856
+ ## Force push to Remote Repository
857
+ ``` sh
858
+ git push -f < remote-name> < branch-name>
859
+ ```
860
+
855
861
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
856
862
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 373
373
}, {
374
374
"title" :" Unstaging Staged file" ,
375
375
"tip" : " git reset HEAD <file-name>"
376
+ }, {
377
+ "title" : " Force push to Remote Repository" ,
378
+ "tip" : " git push -f <remote-name> <branch-name>"
376
379
}]
You can’t perform that action at this time.
0 commit comments