tip to add remote name

Update tips
This commit is contained in:
S N Munendra 2016-06-25 11:32:14 +05:30
parent 623e818a94
commit 3839cd9dbe
2 changed files with 9 additions and 0 deletions

View file

@ -124,6 +124,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [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)
* [Adding Remote name](#adding-remote-name)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -858,5 +859,10 @@ git reset HEAD <file-name>
git push -f <remote-name> <branch-name>
```
## Adding Remote name
```sh
git remote add origin <remote-url>
```
<!-- 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

@ -376,4 +376,7 @@
}, {
"title": "Force push to Remote Repository",
"tip": "git push -f <remote-name> <branch-name>"
}, {
"title": "Adding Remote name",
"tip": "git remote add origin <remote-url>"
}]