Josh doesn't seem to be working correctly with cloning over SSH, but we know it works for pushing. Therefore, we should mention git's support for having a different push URL and recommend always cloning over HTTPS
+6
-4
README.md
+6
-4
README.md
···
36
ForwardAgent yes
37
```
38
39
-
When you've added this section to your ssh config, you can clone over SSH.
40
-
Except for when creating branches, pushing will work as-normal for SSH clones.
41
42
```bash
43
-
git clone ssh://git@git.freshlybakedca.ke/patisserie.git:/packetmix.git
44
-
# Swap out "packetmix" at the end of the URL for whatever project you want to clone
45
```
46
47
### Creating new branches
48
49
When pushing to *josh*, creating branches won't work on a regular `git push`.
···
36
ForwardAgent yes
37
```
38
39
+
When you've added this section to your ssh config, you can add a custom push URL
40
+
to use SSH.
41
42
```bash
43
+
git remote set-url --push ssh://git@git.freshlybakedca.ke/patisserie.git:/packetmix.git
44
+
# Swap out "packetmix" at the end of the URL for whatever project you have cloned
45
```
46
47
+
Except for when creating branches, pushing will work as-normal for SSH clones.
48
+
49
### Creating new branches
50
51
When pushing to *josh*, creating branches won't work on a regular `git push`.
History
1 round
0 comments
a.starrysky.fyi
submitted
#0
1 commit
expand
collapse
docs: always use https to clone
Josh doesn't seem to be working correctly with cloning over SSH, but we
know it works for pushing. Therefore, we should mention git's support
for having a different push URL and recommend always cloning over HTTPS
expand 0 comments
pull request successfully merged