![]() ![]() As pointed out by the user universal_property at reddit, removing the - at the end made it work. If you want to add another GUI tool to this list, just follow the instructions. Update: As some people were reporting, the git lg -p command wasn't working. Git comes with built-in GUI tools for committing ( git-gui) and browsing ( gitk ), but there are several third-party tools for users looking for platform-specific experience. ![]() ![]() PS: It seems that there's no way to view larger images, so I've linked bigger versions of them on the tip. Or, if you want to see the lines that changed git lg -p Git config -global alias.lg "log -color -graph -pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' -abbrev-commit"Īnd every time you need to see your log, just type in git lg Copy and paste the line below on your terminal: I guess that's a bit too long, eh? Let's just make an alias. Just type in: git log -graph -pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' -abbrev-commit It's easy to allow both.So, are you tired of this old and bored git log screen? Using " no-bold" rather than " nobold" is easier to read and more natural to type (to me, anyway, even though I was the person who introduced " nobold" in the first place). It also allow " no-" for negating attributes (Merged by Junio C Hamano - gitster - in commit 3c5de5c, ) Note: with git 2.9.1 (July 2016), The output coloring scheme learned two new attributes, italic and strike, in addition to existing bold, reverse, etc. I prefer the latter way because I can keep the original git-prompt.sh file pristine. We can modify this file to customize our Git Bash terminal, or we can keep this file as it is and save our configurations to our home directory (see lines 8 to 11). So this will work: git config "blue normal bold" The git-prompt.sh file has detailed comments, which greatly helps our customization. Normal, black, red, green, yellow, blue, magenta, cyan and white Īnd it also includes one attribute (style) from this list: This includes two colors (foreground background) from this list: The command can also take multiple parameters in quotes. Remember to enable coloring output if it has not been enabled previously: git config -global color.ui true See " xterm 256 colors" for those numbers, as noted in the comments by Joshua Goldberg. if they aren't added to the index, they will use the color for .Ĭolors may also be given as numbers between 0 and 255 these use ANSI 256-color mode (but not all terminals may support this).if they are added to the index, they will use the color for.Isn't possible: you need to pick one color: The values of these variables may be specified as in color.branch. unmerged (files which have unmerged changes).localBranch or remoteBranch (the local and remote branch names, respectively, when branch and tracking information is displayed in the status short-format),.nobranch (the color the no branch warning is shown in, defaulting to red),.untracked (files which are not tracked by git),.changed (files which are changed but not added in the index),.added or updated (files which are added but not committed),.header (the header text of the status message),.Use customized color for status colorization. ![]()
0 Comments
Leave a Reply. |