Git Product home page Git Product logo

git-bash-for-mac's Introduction

Git Bash for Mac

Did you (finally) migrate from Windows to Mac and the only thing you miss is the lovely Git Bash? You have no idea what the Git Bash is (or Windows for that matters) and yet you really want to improve your Git experience on Mac?

Here it comes the Git Bash for Mac: a nice Terminal customisation that always shows you the branch you are on, powered by a tab-based autocompletion for all of Git’s subcommands, command-line parameters, and remotes and ref names.

Install

Follow these steps:

  1. from the Terminal, run
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/fabriziocucci/git-bash-for-mac/master/install.sh)"
  1. open Terminal -> Preferences -> Profiles and select the Pro theme;
  2. restart the Terminal and enjoy!

Uninstall

Follow these steps:

  1. from the Terminal, run
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/fabriziocucci/git-bash-for-mac/master/uninstall.sh)"
  1. open Terminal -> Preferences -> Profiles and select the theme you used to have;
  2. restart the Terminal and (un)enjoy!

Customize

You don't like the colors of your new prompt? Open ~/.git-bash-for-mac.sh and start messing up with it!

In addition, by simply exporting a couple of variables in ~/.git-bash-for-mac.sh you can make you prompt even more informative:

  • if you set export GIT_PS1_SHOWDIRTYSTATE=1, unstaged (*) and staged (+) changes will be shown next to the branch name;
  • if you set export GIT_PS1_SHOWSTASHSTATE=1 and something is stashed then a '$' will be shown next to the branch name;
  • if you set export GIT_PS1_SHOWUNTRACKEDFILES=1 and there are untracked files then a '%' will be shown next to the branch name.

More info and options can be found here.

git-bash-for-mac's People

Contributors

fabriziocucci avatar

Watchers

Lee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.