Open bittner opened 1 year ago
Adds two aliases for git reset, which are inspired by OMZ.
git reset
grh
git reset HEAD
grh!
The existing Git alias for git reset is not immediately obvious, unless you are used to think in terms of "stage" and "unstage".
I use this on a daily basis, having it integrated identically in a fresh installation of Bash-it on my developer laptop.
The new aliases don't clash with existing ones, as verified manually by a simple text search in the file and a grep over the repository HEAD.
clean_files.txt
lint_clean_files.sh
The failing of the lint job is likely unrelated to the changes in this PR. – Go error: undefined: any
undefined: any
Anyone interested to merge this PR?
Adds two aliases for
git reset
, which are inspired by OMZ.Description
grh
is a natural acronym forgit reset HEAD
.grh!
is the "dangerous" version ofgit reset
, which throws away everything, hence the exclamation mark.Motivation and Context
The existing Git alias for
git reset
is not immediately obvious, unless you are used to think in terms of "stage" and "unstage".How Has This Been Tested?
I use this on a daily basis, having it integrated identically in a fresh installation of Bash-it on my developer laptop.
The new aliases don't clash with existing ones, as verified manually by a simple text search in the file and a grep over the repository HEAD.
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.