From 37b89fdd0d6bc5167d17b476f66bcbc7c5cbf819 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 30 Aug 2023 00:16:21 +0200 Subject: Removing remote/changing url --- tools/git.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/git.md') 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 ``` 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 -- cgit v1.2.3