From 6b29efbc6188acc6a17cef2d466cca806cef86d2 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 10 Jul 2020 00:18:20 +0300 Subject: [PATCH] git touch alias. Touch files and git add them. --- .config/git/config | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/git/config b/.config/git/config index 61f947e..003e536 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] -- GitLab