Adds shortcut to jump to git repo base

This commit is contained in:
Alicia Sykes 2022-08-12 13:00:57 +01:00
parent 8ca0dc1e30
commit 1e06e9163c

View File

@ -61,6 +61,9 @@ function gplfs() {
git lfs push origin "$(git_current_branch)" --all
}
# Navigate back to project root (where .git is)
alias gx='cd $(git rev-parse --show-toplevel)'
# Shorthand clone (e.g. $ clone lissy93/dotfiles)
function clone {
default_service='github.com' # Used if full URL isn't specified