mirror of
https://github.com/namibia/tips.git
synced 2025-01-23 15:18:29 +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)
|
||||
* [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 -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user