bashrc: git remote to be verbose
This commit is contained in:
@@ -65,6 +65,7 @@ alias status="git status ."
|
|||||||
alias push="git push"
|
alias push="git push"
|
||||||
alias pull="git pull"
|
alias pull="git pull"
|
||||||
alias add="git add"
|
alias add="git add"
|
||||||
|
alias remote="git remote -v"
|
||||||
|
|
||||||
commit() {
|
commit() {
|
||||||
git commit -m "$*"
|
git commit -m "$*"
|
||||||
@@ -74,6 +75,9 @@ git() {
|
|||||||
if [[ "$1" == "diff" ]]; then
|
if [[ "$1" == "diff" ]]; then
|
||||||
shift
|
shift
|
||||||
command git diff --staged "$@"
|
command git diff --staged "$@"
|
||||||
|
elif [[ "$1" == "remote" ]]; then
|
||||||
|
shift
|
||||||
|
command git remote -v "$@"
|
||||||
else
|
else
|
||||||
command git "$@"
|
command git "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user