GitPromptDisplay git repository information in a command prompt | |
Download |
GitPrompt Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Luke Stebbing
- Publisher web site:
- http://lukestebbing.com
GitPrompt Tags
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 newcwd new $ git checkout mastercwd master $ echo y1 > y; git add y; git commit -m y1; git checkout newThe number of saved stashes is indicated:cwd new $ echo y2 > y; git add y; git stash savecwd new stash $ touch z; git add z; git stash savecwd new stashes! $ git stash pop ; git stash popWhether a rebase is in progress is indicated:cwd new $ git rebase mastercwd new rebase! $ git rebase --abortcwd new $ git config core.editor true; git rebase --interactive mastercwd new rebase! $ git rebase --abortIf gitprompt was passed a non-zero exit code, it will be displayed:cwd new $ truecwd new $ false=> 1cwd new $ Requirements: · Python What's New in This Release: · Corrected minor metadata errors.
GitPrompt Related Software