Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    GitPrompt 0.1.1

    Download button

    No screenshots available
    Downloads: 240  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Luke Stebbing | More programs
    MIT/X Consortium Lic... / FREE
    October 27th, 2009, 09:57 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    GitPrompt description

    Display git repository information in a command prompt

    GitPrompt is a Python module that displays the current branch, the status of stash and rebase, and optionally, non-zero exit status codes.

    Examples:

    To follow along, create a new repository and set your prompt:

    $ git init; touch x; git add x; git commit -m x
    $ export PS1='cwd$(../gitprompt $?) $ '


    The current branch is displayed:

    cwd master $ git checkout -b new
    cwd new $ git checkout master
    cwd master $ echo y1 > y; git add y; git commit -m y1; git checkout new


    The number of saved stashes is indicated:

    cwd new $ echo y2 > y; git add y; git stash save
    cwd new stash $ touch z; git add z; git stash save
    cwd new stashes! $ git stash pop ; git stash pop

    Whether a rebase is in progress is indicated:

    cwd new $ git rebase master
    cwd new rebase! $ git rebase --abort
    cwd new $ git config core.editor true; git rebase --interactive master
    cwd new rebase! $ git rebase --abort


    If gitprompt was passed a non-zero exit code, it will be displayed:

    cwd new $ true
    cwd new $ false
    => 1
    cwd new $



    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Corrected minor metadata errors.

      


    TAGS:

    Git branch | repository information | Git repository | Git | repository | information

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM