correct history expansion
global git ignore file
much easier approach to get git ahead/behind