diff --git a/.config/git/config b/.config/git/config index 61f947e465b0d4b1ffa0b10dcbc1e3ae2e0fdf89..003e536022db9024dcd1deffcf4731009bbdf542 100644 --- a/.config/git/config +++ b/.config/git/config @@ -32,6 +32,7 @@ stat = status --short --branch tag-version = !git tag --annotate --force --message "v$(cat VERSION)" "v$(cat VERSION)" temptree = !git worktree prune && git worktree add "$(mktemp -d)" + touch = "!f() { touch \"$@\" && git add -f \"$@\"; }; f" tracking = rev-parse --abbrev-ref --symbolic-full-name @{upstream} trigger = !git commit --allow-empty --no-edit --amend && git pushes --force-with-lease [color]