mirror of
https://github.com/namibia/tips.git
synced 2025-02-03 03:58:24 +00:00
tip to add remote name
Update tips
This commit is contained in:
parent
623e818a94
commit
3839cd9dbe
@ -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)
|
* [Get first commit in a branch (from master)](#get-first-commit-in-a-branch-from-master)
|
||||||
* [Unstaging Staged file](#unstaging-staged-file)
|
* [Unstaging Staged file](#unstaging-staged-file)
|
||||||
* [Force push to Remote Repository](#force-push-to-remote-repository)
|
* [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>. -->
|
<!-- 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 -->
|
<!-- @doxie.inject end toc -->
|
||||||
@ -858,5 +859,10 @@ git reset HEAD <file-name>
|
|||||||
git push -f <remote-name> <branch-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>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
@ -376,4 +376,7 @@
|
|||||||
}, {
|
}, {
|
||||||
"title": "Force push to Remote Repository",
|
"title": "Force push to Remote Repository",
|
||||||
"tip": "git push -f <remote-name> <branch-name>"
|
"tip": "git push -f <remote-name> <branch-name>"
|
||||||
|
}, {
|
||||||
|
"title": "Adding Remote name",
|
||||||
|
"tip": "git remote add origin <remote-url>"
|
||||||
}]
|
}]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user