Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/gitrcPublic

Command line coloring for git repositories

NotificationsYou must be signed in to change notification settings

zmij/gitrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Initially found this script somewhere in the internet. Patched to work with different colors for clean branch, dirty branch, staged changes. For a clean branch the color is different if there are pending local or remote changes.

It looks like this:

gitrc

Installation

Place the.gitrc file to your home directory. Add the following code to your.bashrc or.profile file:

# uncomment this line if your startup script doesn't set color_prompt correctly# color_prompt=yesif [-f~/.gitrc ];then.~/.gitrcfi

Automatically updating remote

The remote changes can be automatically updated. This can be a time consuming operation, so a reasonable update interval shoud be chosen. The feature is disabled by default and it can be set by

# Set remote update interval in secondsgit config --local prompt.updateinterval 60# Or use a helper functiongitrc_refresh_timeout 60

To turn automatic remote update off

git config --local --unset prompt.updateinterval# Or use a helper functiongitrc_refresh_timeout off

About

Command line coloring for git repositories

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp