From 7bf475dff8b2a3529abad59f8bef086b5e91b661 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 30 Aug 2023 00:09:03 +0200 Subject: Adding remote server repository/make main branch --- tools/git.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ``` +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 -- cgit v1.2.3