Merge pull request #1526 from davidpfarrell/aliases/git/git-switch

Aliases/git/git switch
pull/1533/head
Nils Winkler 2020-03-29 16:30:25 +02:00 committed by GitHub
commit 30f0efe873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ alias gstb="git stash branch"
alias gstd="git stash drop" alias gstd="git stash drop"
alias gstl="git stash list" alias gstl="git stash list"
alias gstp="git stash pop" alias gstp="git stash pop"
# Switch aliases - Requires git v2.23+
alias gsw="git switch"
alias gswm="git switch master"
alias gswc="git switch --create"
alias gswt="git switch --track"
alias gh='cd "$(git rev-parse --show-toplevel)"' alias gh='cd "$(git rev-parse --show-toplevel)"'
# Show untracked files # Show untracked files
alias gu='git ls-files . --exclude-standard --others' alias gu='git ls-files . --exclude-standard --others'