From 0d20d75a6d99ea4ac07b9e74f571dcf28252705c Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 6 Nov 2023 23:35:04 +0200 Subject: Git remote add... --- tools/git.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/git.md b/tools/git.md index eb3f59d..0b34b70 100644 --- a/tools/git.md +++ b/tools/git.md @@ -161,7 +161,7 @@ $ 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//.git ``` > NOTE: To remove server: `git remote remove origin` or change url `git remote set-url origin git://new.url.here` @@ -170,6 +170,7 @@ $ git remote add origin https://github.com/srdusr/grimoire.git ```bash $ git push -u origin ``` +> NOTE: Branch name should be *main* unless otherwise set to a different branch name Fetch the most recent changes/commits from the remote branch/repository > NOTE: make sure to checkout to the desired branch first, example: `git checkout main` -- cgit v1.2.3