Skip to content

Commit 4d2217b

Browse files
committed
add maintenance and repairing
1 parent d129687 commit 4d2217b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Git Workflows.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
- [Forks workflow](#forks-workflow)
55
- [Cleaning Up Your Work](#cleaning-up-your-work)
66
- [Diffs between branches](#diffs-between-branches)
7+
- [Pull a single file from head](#pull-a-single-file-from-head)
78
- [Reset fork based on upstream](#reset-fork-based-on-upstream)
89
- [Reset your upstream repository with current](#reset-your-upstream-repository-with-current)
910
- [Pushing an existing repo with history to a new blank repo](#pushing-an-existing-repo-with-history-to-a-new-blank-repo)
1011
- [List changed files](#list-changed-files)
1112
- [Using worktree](#using-worktree)
13+
- [Maintenance and Repairing](#maintenance-and-repairing)
1214

1315
# Git Workflows
1416
## Forks workflow
@@ -110,4 +112,10 @@ In case of `git pull --ff-only` command, when many commits can be added, `HEAD@{
110112
## Using worktree
111113
```
112114
git --work-tree=/var/www/html --git-dir=/usr/src/proj checkout -f
115+
```
116+
117+
## Maintenance and Repairing
118+
```
119+
git fsck --full
120+
git gc --prune=now
113121
```

0 commit comments

Comments
 (0)