File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,8 @@ 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 )
127
+ * [ Adding Remote name] ( #adding-remote-name )
126
128
127
129
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
128
130
<!-- @doxie.inject end toc -->
@@ -852,5 +854,15 @@ git log master..<branch-name> --oneline | tail -1
852
854
git reset HEAD < file-name>
853
855
```
854
856
857
+ ## Force push to Remote Repository
858
+ ``` sh
859
+ git push -f < remote-name> < branch-name>
860
+ ```
861
+
862
+ ## Adding Remote name
863
+ ``` sh
864
+ git remote add origin < remote-url>
865
+ ```
866
+
855
867
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
856
868
<!-- @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>"
379
+ }, {
380
+ "title" : " Adding Remote name" ,
381
+ "tip" : " git remote add origin <remote-url>"
376
382
}]
You can’t perform that action at this time.
0 commit comments