srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/tools/git.md
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-08-30 00:16:21 +0200
committersrdusr <[email protected]>2023-08-30 00:16:21 +0200
commit37b89fdd0d6bc5167d17b476f66bcbc7c5cbf819 (patch)
treeb675b19efb3b086b4c3ee42e28e996e4085b9de4 /tools/git.md
parent7bf475dff8b2a3529abad59f8bef086b5e91b661 (diff)
downloadnotes-37b89fdd0d6bc5167d17b476f66bcbc7c5cbf819.tar.gz
notes-37b89fdd0d6bc5167d17b476f66bcbc7c5cbf819.zip
Removing remote/changing url
Diffstat (limited to 'tools/git.md')
-rw-r--r--tools/git.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/git.md b/tools/git.md
index 22ce1b1..7df206c 100644
--- a/tools/git.md
+++ b/tools/git.md
@@ -117,12 +117,13 @@ $ git commit -m <file>
```
Make main branch
```bash
-git branch -M main
+$ git branch -M main
```
Add remote server repository
```bash
-git remote add origin https://github.com/srdusr/grimoire.git
+$ git remote add origin https://github.com/srdusr/grimoire.git
```
+> NOTE: To remove server: `git remote remove origin` or change url `git remote set-url origin git://new.url.here`
Push the changes/commits onto repo:
```bash
$ git push -u origin <branch>