18.11.12

GIT con colores desde la terminal

Para tener unos lindos colores en GIT en nuestra consola, tenemos que ejecutar el siguiente comando:

$ git config --global --add color.ui true

Ahora, cuando hagamos un diff, status y demas, vamos a tener coloreado en verde/rojo el output de GIT!

Por ejemplo, un diff:

$ git diff
diff --git a/index.php b/index.php
index 211eb49..f0a6b1b 100644
--- a/index.php
+++ b/index.php
@@ -18,7 +18,7 @@
  * NOTE: If you change these, also change the error_reporting() code below
  *
  */
-       define('ENVIRONMENT', 'development');
+       define('ENVIRONMENT', 'production');
 /*
  *---------------------------------------------------------------

O un status:

$ git status
# On branch master
# Changed but not updated:
#   (use "git add ..." to update what will be committed)
#   (use "git checkout -- ..." to discard changes in working directory)
#
#       modified:   application/config/database.php
#

No hay comentarios.: