Table of Contents

git

MagicMonty's Bash prompt, Mint flavour

Github user magicmonty came up with a nice useful ​ bash git prompt. For people using Linux Mint (like me) and looking to keep the prompt as similar to the default one as possible (like me), you will want to add this to your .bashrc:

GIT_PROMPT_START="_LAST_COMMAND_INDICATOR_ ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[00m\]"
GIT_PROMPT_END=" $ "
source ~/.bash-git-prompt/gitprompt.sh

MagicMonty's Bash prompt, Cygwin flavor

The same as above, just mimicking the Cygwin default prompt:

GIT_PROMPT_START="\n_LAST_COMMAND_INDICATOR_ \[\e]0;\w\a\]\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]"
GIT_PROMPT_END=" \n$ "
source ~/.bash-git-prompt/gitprompt.sh

Notes from the Workshop

Basic commands

Ignoring files

generated/
/temp/
*.bak

Changes

Branches

Decentralized Workflow

git config

git config --global pretty.gim "%C(blue)%ar%x09%C(yellow)%h%x09%C(cyan)%aN%x09%C(reset)%s%x09%C(auto)%d"
git config --global format.pretty gim