Git: Add gaa to add even ignored files.

This commit is contained in:
Dmitry Voronin 2025-01-09 10:20:48 +03:00
parent 9946c7341d
commit b11cf3b2bc
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -179,6 +179,16 @@ function ga() {
git add ${target}
}
# Preview diff while adding. Adds even ignored files.
# Usage: gaa [FILES]
function gaa() {
local target=${@}
[[ ${target} == "" ]] && target="."
git diff ${target}
git add -f ${target}
}
# Rebase by X commits or from root. When COUNT is 0 - rebase from root. Default is 2.
# Usage: gr [COMMIT COUNT]
function gr() {