Git: Add gaa to add even ignored files.
This commit is contained in:
parent
9946c7341d
commit
b11cf3b2bc
|
@ -179,6 +179,16 @@ function ga() {
|
||||||
git add ${target}
|
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.
|
# Rebase by X commits or from root. When COUNT is 0 - rebase from root. Default is 2.
|
||||||
# Usage: gr [COMMIT COUNT]
|
# Usage: gr [COMMIT COUNT]
|
||||||
function gr() {
|
function gr() {
|
||||||
|
|
Loading…
Reference in a new issue