Improved aliases in git notes

This commit is contained in:
Michele Cereda
2022-05-06 17:41:31 +02:00
parent 32da0c9229
commit bbabba32fe

View File

@@ -578,7 +578,13 @@ Those commands need to be wrapped into a one-line function definition:
```ini
[alias]
pull-from-all = "!f() { git remote show | xargs -I{} -P0 -n1 git pull {} ${1-$(git branch --show-current)}; } && f"
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
pull-from-all = "!f() { \
git remote show | xargs -I{} -P0 -n1 git pull {} ${1-$(git branch --show-current)}; \
} && f"
subtree-add = "!f() { \
git subtree add --prefix $2 $1 master --squash; \
}; f"
```
## LFS extension