diff --git a/modules/git/README.md b/modules/git/README.md index c2d0449c..32733ee7 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -208,6 +208,10 @@ Aliases - `gwX` removes files from the working tree and from the index recursively and forcefully. +### Miscellaneous + + - `g..` changes to the root of the git repository. + ### Shadows The following aliases may shadow system commands: diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index ffa854dd..891cd494 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -179,3 +179,6 @@ alias gwc='git clean -n' alias gwC='git clean -f' alias gwx='git rm -r' alias gwX='git rm -rf' + +# Misc +alias g..='cd $(git-root || echo ".")'