grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit 68b6c104b7771c0f90baa5392489f2470c08b32c
parent 80f3789dafe3d25f1f8f929484b87d0bc09f8489
Author: pyratebeard <root@pyratebeard.net>
Date:   Mon, 21 Jun 2021 15:31:04 +0100

add remote origin, add multiple push repos, archive branch

Diffstat:
Mcoding/git.md | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/coding/git.md b/coding/git.md @@ -64,6 +64,22 @@ unstash git stash pop ``` +add remote origin +``` +git remote add origin git@gitserver/path/to/repo +``` + +add multiple push repos +``` +git remote set-url --add --push origin git@gitserver/original/repo +git remote set-url --add --push origin https://gitserver/another/repo +``` + +archive branch +``` +git archive --format zip --outpu /path/to/output.zip <branch> +``` + ## using `hub` ### pull requests ```