coding/git.md
... ...
@@ -64,6 +64,22 @@ unstash
64 64
git stash pop
65 65
```
66 66
67
+add remote origin
68
+```
69
+git remote add origin git@gitserver/path/to/repo
70
+```
71
+
72
+add multiple push repos
73
+```
74
+git remote set-url --add --push origin git@gitserver/original/repo
75
+git remote set-url --add --push origin https://gitserver/another/repo
76
+```
77
+
78
+archive branch
79
+```
80
+git archive --format zip --outpu /path/to/output.zip <branch>
81
+```
82
+
67 83
## using `hub`
68 84
### pull requests
69 85
```