Skip to content
John Meow edited this page Aug 6, 2020 · 5 revisions

git

This module displays information about the current git repository. If you are not in a git repository, it is not shown. If the current branch is dirty, the segment is yellow/orange by default. The dirty color can be changed by providing an extra argument.

Icons

Icon Name Description Nerd Fonts Unicode ASCII
github remote points to GitHub github
gitlab remote points to GitLab gitlab
bitbucket remote points to Bitbucket bitbucket
git remote does not point to any of the above domains generic
stash a stash stash 📥 #
ahead you are a commit ahead of upstream ahead >
behind you are a commit behind upstream (requires a git fetch) behind <
modified the branch has been modified circle *
staged a file has been staged plus +

Example

[[left]]
name = "git"
color.background = "green"
color.foreground = "black"
# "yellow" is the dirty color
args = ["yellow"]
Clone this wiki locally