Following up yesterday's post, here goes another set of tricks I have done to my GIT setup.
To begin with, add this code to yhe .git/config file of your git repo clone:
Once you do that, you'll see things like colors when running a "git status":
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikOvpVkstnMoqmktPueJmPIXKvg2hi5DqA2iKk3qWLV5V38OyMa2uWTH7DK8VNEIJuDHs3VW_M9GM_YqwfdJKD_pMve-6Q4FwFzHDzQh5ubBsjoyNH_tl0GrhTeL12hItBipNyYq3jtUyp/s1600/Screen+Shot+2013-06-13+at+10.45.07+AM.png)
You'lll also be able to use git command shortcuts, like:
- "git st" instead of "git status"
- "git ci" instead of "git commit"
(etc!)
Logs will look much more sexy and colorful.
You'll see diffs with colors and with a much more user-friendly format:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBKKgejzRGxBE_cL-UK6pGX3wWaeMZEou2sPKWFeF6XbzQi0bpyTboEMW93f7lV3YFIHTMP1_0NwHCbF9J5kLO70VU6fEYqC9Sw-rTLTMa6H9NopCersUH_TRLZwx0txUNiPHc8iFjuYYs/s1600/Screen+Shot+2013-06-13+at+10.47.34+AM.png)
When running "git branch", you'll see the current branch highlighted and the local branches clearly marked in yellow:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy7modqYCwczdS-tSZgXqYx5huHF5Ie-pRwnq5zvDyHM68h-a5AWeccAT-aXpW9PVXsOlfZFcYx9_GkCLNvlJ_KB6TWChTgD_urb-p55aSXQBdoe2a4CgCd1x1LKsOJ4Hh5DdsIxVUkS9-/s1600/Screen+Shot+2013-06-13+at+10.49.06+AM.png)
And remote branches in green:
That's all for today, folks!
Cheers!
No hay comentarios:
Publicar un comentario