|
@@ -5,11 +5,15 @@ gimme git
|
|
|
|
|
|
|
|
has git-alias || gimme_pkg git-extras
|
|
has git-alias || gimme_pkg git-extras
|
|
|
|
|
|
|
|
-if ! [[ "$(git alias)" ]]; then
|
|
|
|
|
- git alias br branch
|
|
|
|
|
- git alias ci commit
|
|
|
|
|
- git alias co checkout
|
|
|
|
|
- git alias di diff
|
|
|
|
|
- git alias st status
|
|
|
|
|
- git alias sw switch
|
|
|
|
|
|
|
+if ! [[ "$(git alias --global)" ]]; then
|
|
|
|
|
+ echo "#INFO: Configuring git alias entries..."
|
|
|
|
|
+ git alias --global br branch
|
|
|
|
|
+ git alias --global ci commit
|
|
|
|
|
+ git alias --global co checkout
|
|
|
|
|
+ git alias --global di diff
|
|
|
|
|
+ git alias --global st status
|
|
|
|
|
+ git alias --global sw switch
|
|
|
|
|
+ git alias --global pi cherry-pick
|
|
|
|
|
+
|
|
|
|
|
+ git alias --global | sed 's/^/# /'
|
|
|
fi
|
|
fi
|