Skip to content

Commit

Permalink
Back it up
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpelt committed Dec 14, 2024
1 parent 94f5c1e commit 880b3c3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion dev_docs/REPO_CLEANUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@ If we start getting north of 200MB, we should likely clean the repo.
brew install java
```

### Clean the repo
### Clone the repo

Checkout a bare version of the repo with the following command:

```bash
git clone --mirror https://github.com/wandb/weave.git weave-cleanup.git
```

### Backup the repo

```bash
git bundle create weave-$(date +%Y-%m-%d).bundle --all
```

### Clean the repo

The below command will remove all files larger than 500K and delete the files with the following extensions:

```bash
Expand All @@ -41,3 +49,8 @@ git reflog expire --expire=now --all && git gc --prune=now --aggressive
git count-objects -vH
```

### YOLO

```bash
git push --force --all
```

0 comments on commit 880b3c3

Please sign in to comment.