mirror of
https://github.com/git-tips/tips
synced 2024-11-12 22:57:08 +00:00
tip to add remote name
Update tips
This commit is contained in:
parent
623e818a94
commit
3839cd9dbe
2 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
||||
<!-- Don’t 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>
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
|
|
@ -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>"
|
||||
}]
|
||||
|
|
Loading…
Reference in a new issue