Skip to content

Commit 3839cd9

Browse files
committed
tip to add remote name
Update tips
1 parent 623e818 commit 3839cd9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
124124
* [Get first commit in a branch (from master)](#get-first-commit-in-a-branch-from-master)
125125
* [Unstaging Staged file](#unstaging-staged-file)
126126
* [Force push to Remote Repository](#force-push-to-remote-repository)
127+
* [Adding Remote name](#adding-remote-name)
127128

128129
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
129130
<!-- @doxie.inject end toc -->
@@ -858,5 +859,10 @@ git reset HEAD <file-name>
858859
git push -f <remote-name> <branch-name>
859860
```
860861

862+
## Adding Remote name
863+
```sh
864+
git remote add origin <remote-url>
865+
```
866+
861867
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
862868
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,4 +376,7 @@
376376
}, {
377377
"title": "Force push to Remote Repository",
378378
"tip": "git push -f <remote-name> <branch-name>"
379+
}, {
380+
"title": "Adding Remote name",
381+
"tip": "git remote add origin <remote-url>"
379382
}]

0 commit comments

Comments
 (0)