Permalink
Browse files

adding tip of the day

  • Loading branch information...
1 parent 21ee965 commit 31c69a2c765bf07928a3674c4d509aad2e7a215d @orefalo committed Mar 3, 2013
Showing with 28 additions and 2 deletions.
  1. +3 −2 README.md
  2. +25 −0 g2-install.sh
View
@@ -8,7 +8,7 @@ This project is an attempt to make the git command line a friendly place: it eas
##Benefits
-* **g2** will save you time by providing high level commands.
+* **g2** saves time by providing high level commands.
* **g2** is generally safer than git as it prompts before destructive actions.
* **g2** helps setup git settings : sshkeys, username, email and tools.
* **g2** provides two letter acronyms for most commands.
@@ -420,8 +420,9 @@ Distributed under the GNU General Public License, version 2.0.
* g undo needs more validations
* enforce completions for undo *, and all the upstream commands
-## FIXED
+## FIXED / DONE
+* Added tips of the day
* fix issue with --set-upstream being deprecated
* fix warning when running: g track <remote/branch>
* `g dt` was failing when comparing with other branches. reverted.
View
@@ -10,6 +10,28 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
OLDpwd=$PWD
cd $DIR
+
+tips=(
+"g sync adds your changes to the tip of the branch and synchronizes with the servers both ways."
+"g freeze is a handy command to litteraly freeze the state of the repository."
+"g2 saves time by providing high level commands."
+"g2 is generally safer than git as it prompts before destructive actions."
+"run 'g setup' to configure git."
+"g2 provides two letter acronyms for most commands."
+"g2 eases the merge process by introducing 'g continue' and 'g abort'."
+"g2 purposely provides a reduced set of commands."
+"g2 enhances command line experience with auto-completion <TAB-key> and a smart prompt."
+"g2 warns when the branch history was changed on the server (forced pushed)."
+"g2 checks the branch freshness prior to merging and warns accordingly."
+"g2 enforces a clean linear history by introducing new commands."
+"g2 requires a clean state before rebasing, checking out, branching or merging."
+"g2 provides guidance when it cannot perform an operation."
+"g2 brings a number of friendly commands such as : panic, sync, freeze, wip."
+"g2 eases branch creation. try it 'g br myBranchName'."
+"g2 is just easier at undoing things: try 'g undo commit' or 'g undo merge'."
+"When lost, 'g panic' is the easiest way to get you back on track."
+)
+
echo -n "Installing G2.."
source ./g2-completion.sh
@@ -25,4 +47,7 @@ alias git=__g2_eval;
echo " Enjoy!"
+printf "\nTip of the day: %s \n" "${tips[RANDOM % ${#tips[@]}]}"
+
+
cd $OLDpwd

0 comments on commit 31c69a2

Please sign in to comment.