git : add ggc.
This commit is contained in:
parent
4cdb99fd6d
commit
cf121cd31b
|
@ -534,6 +534,7 @@ Command|Description
|
||||||
`gr [COUNT]`|Git rebase. 2 last commits by default. 0 means from root.
|
`gr [COUNT]`|Git rebase. 2 last commits by default. 0 means from root.
|
||||||
`gu <EMAIL>`|Configure git user as Dmitry Voronin with specified email (project).
|
`gu <EMAIL>`|Configure git user as Dmitry Voronin with specified email (project).
|
||||||
`gg <REPO>`|Get git repo from my own git.
|
`gg <REPO>`|Get git repo from my own git.
|
||||||
|
`ggc`|Run git garbage collection.
|
||||||
|
|
||||||
## Ls.
|
## Ls.
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,11 @@ alias gi="git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached"
|
||||||
alias gpc="git diff >"
|
alias gpc="git diff >"
|
||||||
alias gp="git apply"
|
alias gp="git apply"
|
||||||
|
|
||||||
|
# Run git garbage collection.
|
||||||
|
ggc() {
|
||||||
|
git gc --aggressive --no-cruft --prune=now
|
||||||
|
}
|
||||||
|
|
||||||
# alias to preview diff while adding. adds current dir by default.
|
# alias to preview diff while adding. adds current dir by default.
|
||||||
# usage: ga [FILES]
|
# usage: ga [FILES]
|
||||||
ga() {
|
ga() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Context]
|
[Context]
|
||||||
filesystems=!xdg-download;~/.config/MangoHud:ro;~/media/bottle;/var/mnt/storage/cold_1/tmp:ro;/var/mnt/storage/hot/media/bottle;/var/mnt/storage/hot/media/game;~/download:ro;/var/mnt/storage/cold_1/media/game/:ro
|
filesystems=!xdg-download;/var/mnt/storage/hot/media/save;/var/mnt/storage/cold_1/media/game/:ro;~/download:ro;/var/mnt/storage/hot/media/game;/var/mnt/storage/hot/media/bottle;/var/mnt/storage/cold_1/tmp:ro;~/media/bottle;~/.config/MangoHud:ro
|
||||||
|
|
||||||
[Environment]
|
[Environment]
|
||||||
MANGOHUD=1
|
MANGOHUD=1
|
||||||
|
|
Reference in a new issue