diff options
| author | srdusr <[email protected]> | 2023-11-06 23:35:04 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2023-11-06 23:35:04 +0200 |
| commit | 0d20d75a6d99ea4ac07b9e74f571dcf28252705c (patch) | |
| tree | b52604e0c74582ae31326caa4a7aeeaa5429dee5 | |
| parent | 90cc8f9e5b1b46ddbd103820d02afa60145b7c00 (diff) | |
| download | notes-0d20d75a6d99ea4ac07b9e74f571dcf28252705c.tar.gz notes-0d20d75a6d99ea4ac07b9e74f571dcf28252705c.zip | |
Git remote add...
| -rw-r--r-- | tools/git.md | 3 |
1 files changed, 2 insertions, 1 deletions
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/<username>/<repo>.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 <branch> ``` +> 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` |