{"id":15328909,"url":"https://github.com/timbru31/git-colored-branch-status","last_synced_at":"2025-04-04T11:44:20.297Z","repository":{"id":12612551,"uuid":"15283630","full_name":"timbru31/git-colored-branch-status","owner":"timbru31","description":"Shows the branch name and colors based on the current git branch status","archived":false,"fork":false,"pushed_at":"2014-03-24T08:58:21.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T21:41:12.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timbru31.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-18T13:20:03.000Z","updated_at":"2014-11-18T16:19:53.000Z","dependencies_parsed_at":"2022-09-01T08:40:22.511Z","dependency_job_id":null,"html_url":"https://github.com/timbru31/git-colored-branch-status","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timbru31%2Fgit-colored-branch-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timbru31%2Fgit-colored-branch-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timbru31%2Fgit-colored-branch-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timbru31%2Fgit-colored-branch-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timbru31","download_url":"https://codeload.github.com/timbru31/git-colored-branch-status/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174378,"owners_count":20896074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T09:45:37.944Z","updated_at":"2025-04-04T11:44:20.276Z","avatar_url":"https://github.com/timbru31.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"git-colored-branch-status\n=========================\n\nShows the branch name and colors based on the current git branch status\n\n* red --\u003e dirty (untracked or modified files)\n* green --\u003e clean\n* yellow --\u003e semi-dirty, clean branch but unpushed commits\n\nCopied some code from the .bashrc, because login didn't worked.\n\n## Requirements\n\nThe unix programm **tput**, usually found at /usr/bin/tput should be installed\n\n## Integration into an existing\n\nAssuming you are using bash and you already have a **.bashrc** or **.bash_profile** in your **HOME**\ndirectory, simply add a line like this this file to integrate it:\n\n    source './.git-colored-branch-status'\n    \nThen add the following line to integrate the git_prompt. It is assumed that you define your PS1\nin MY_PS1. Here is just an example:\n\n    MY_PS1=\"$NM[$HI\\u $SI\\w$NM]$IN\"\n    PROMPT_COMMAND='PS1=\"$MY_PS1$(git_prompt): \"'\n\nDo not use PS1 in MY_PSI or directly PROMPT_COMMAND because this will result in an totally unexpected\nbehaviour.\n\nTo let the changes have effect, you have to source your .bash_profile or .bashrc file:\n\n    source .bash_profile\n\n## Color adjustment\nSee [here](http://www.gilesorr.com/bashprompt/prompts/flex.html)\n\n\n## Credits/based on:\nhttp://vvv.tobiassjosten.net/bash/dynamic-prompt-with-git-and-ansi-colors/\n\nhttp://jeditoolkit.com/2010/09/04/git-status-in-bash-prompt.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimbru31%2Fgit-colored-branch-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimbru31%2Fgit-colored-branch-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimbru31%2Fgit-colored-branch-status/lists"}