srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/tools/git.md
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-08-30 00:09:03 +0200
committersrdusr <[email protected]>2023-08-30 00:09:03 +0200
commit7bf475dff8b2a3529abad59f8bef086b5e91b661 (patch)
tree82a60533ca1a54745451e8e3b5a1b4b57f1ac038 /tools/git.md
parentf02081959b0de87b2387c7b953e804cdd70d64f9 (diff)
downloadnotes-7bf475dff8b2a3529abad59f8bef086b5e91b661.tar.gz
notes-7bf475dff8b2a3529abad59f8bef086b5e91b661.zip
Adding remote server repository/make main branch
Diffstat (limited to 'tools/git.md')
-rw-r--r--tools/git.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/git.md b/tools/git.md
index 1616b31..22ce1b1 100644
--- a/tools/git.md
+++ b/tools/git.md
@@ -115,6 +115,14 @@ Create a commit with a message about the commit:
```bash
$ git commit -m <file>
```
+Make main branch
+```bash
+git branch -M main
+```
+Add remote server repository
+```bash
+git remote add origin https://github.com/srdusr/grimoire.git
+```
Push the changes/commits onto repo:
```bash
$ git push -u origin <branch>