git: clean-permissions -> clean-modes
This commit is contained in:
parent
0e81e39670
commit
9317e54e95
|
@ -17,8 +17,8 @@ Use `squashfs2tar.sh` to convert squashfs files from e.g. https://cloud-images.u
|
|||
|
||||
- `git clean-branches` - delete local branches that track remote branches that have been deleted
|
||||
- `git clean-dates` - set all committer dates of all commits in the given range to their author dates
|
||||
- `git clean-modes` - reset all file modes to to those according to the repository
|
||||
- `git clean-original` - delete all `refs/original/` refs left by `git filter-branch`
|
||||
- `git clean-permissions` - reset all file permissions to to those according to the repository
|
||||
- `get clean-user` - set all author/committer emails/names of all commits in the given range to the currently configured `user.email` and `user.name`
|
||||
- `git turbo-gc` - turbo garbage collect, wipe reflog, everything
|
||||
- `git unfilemode` - unset `core.filemode` on this repo, so global (`core.filemode = false`) will be used
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
[alias]
|
||||
clean-branches = !git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
|
||||
clean-dates = filter-branch --env-filter 'GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"' --
|
||||
clean-modes = !git -c core.filemode diff -R | grep -E '^(diff|(old|new) mode)' | git apply
|
||||
clean-original = !git show-ref | grep ' refs/original/' | cut -d ' ' -f 2 | xargs -n 1 git update-ref -d
|
||||
clean-permissions = !git -c core.filemode diff -R | grep -E '^(diff|(old|new) mode)' | git apply
|
||||
clean-user = !git filter-branch --env-filter 'GIT_AUTHOR_EMAIL="$(git config --get user.email)" GIT_AUTHOR_NAME="$(git config --get user.name)" GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"' --
|
||||
turbo-gc = -c gc.reflogexpire=0 -c gc.reflogexpireunreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneexpire=now gc
|
||||
unfilemode = config --unset-all core.filemode
|
||||
|
|
Loading…
Reference in New Issue