Skip to content

Commit 6cba76d

Browse files
committed
Merge branch 'RubenKelevra-patch-1'
2 parents fbb8e45 + 10bfd28 commit 6cba76d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/.vuepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ module.exports = {
202202
'/how-to/work-with-pinning-services',
203203
'/how-to/take-snapshot',
204204
'/how-to/store-play-videos',
205-
'/how-to/host-git-style-repo',
205+
'/how-to/host-git-repo',
206206
'/how-to/move-ipfs-installation/move-ipfs-installation'
207207
]
208208
},
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
title: Host a Git-style repo
3-
description: Learn how to serve a static Git repository worldwide using IPFS, the InterPlanetary File System.
3+
legacyUrl: https://docs.ipfs.io/guides/examples/git/
4+
description: Learn how to serve a static Git repository worldwide using IPFS.
45
---
56

6-
# Host a Git-style repo
7+
# Host a Git repo
78

89
Have you ever said to yourself: "Man, my Git server isn't distributed enough" or "I wish I had an easy way to serve a static Git repository worldwide"? Well, wish no more.
910

@@ -12,7 +13,7 @@ In this guide, we discuss how to serve a Git repository through the IPFS network
1213
To start, select a Git repository you want to host, and do a bare clone of it:
1314

1415
```bash
15-
git clone --bare git@myhost.io/myrepo
16+
git clone --mirror git@myhost.io/myrepo
1617
```
1718

1819
For those who aren't super Git-savvy, a bare repository means that it doesn't have a working tree, and can be used as a server. They have a slightly different format than your normal Git repository.
@@ -55,7 +56,7 @@ $ git clone http://QmX679gmfyaRkKMvPA4WGNWXj9PtpvKWGPgtXaF18etC95.ipfs.localhost
5556

5657
Note: make sure to change out that hash for yours.
5758

58-
Now, you may be asking "Well, what good is a Git repository that I can't change anything on?" Here's one use case. Say you program in Go. For those who don't know, Go uses version control paths for its imports, i.e:
59+
Now, you may be asking, "Well, what good is a Git repository that I can't change anything on?" Here's one use case. Say you program in Go. For those who don't know, Go uses version control paths for its imports, i.e:
5960

6061
```go
6162
import (

0 commit comments

Comments
 (0)