Git Feature Request

I looked for a git bugzilla but could not find one.

The feature I want is for ‘git status’ to show you if you are in the middle if a rebase.

3 Responses to “Git Feature Request”

  1. Josh Stone Says:

    I agree that it would be very useful for this to be shown in git-status.

    I have it in my prompt using __git_ps1() from /etc/bash_completion.d/git. It looks like all that does for REBASE/MERGE/BISECT status is check for the existence of certain files in the .git directory.

  2. Jeff Schroeder Says:

    Josh Stone is 100% right. Just use __git_ps1 to do it. For instance, my PS1 variable (exported from ~/.bashrc) looks like:
    PS1=’${debian_chroot:+($debian_chroot)}\[33[01;32m\]\u@\h\[33[00m\]:\[33[01;34m\]\w\[33[00m\]\$$(__git_ps1) ‘

  3. Sami Wagiaalla Says:

    Guys, that is an awesome feature. Here is what I did:

    yum -y install bash-completion
    and I added this to my ~/.bashrc PS1='[\u@\h \W$(__git_ps1)]\$’

    Thanks for the tip :)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: