Git bash alias config

SourceTree是一个功能很强大的Git GUI工具,但是就是太慢,且在Windows下会出现莫名占用一个核心CPU。于是开始折腾Git bash,目前基本够用。其中alias部分的配置文件如下,供参考,放到 /username/.gitconfig里面即可。 [alias] l = log –pretty=format:”%C(yellow)%h\ %ad%Cred%d\ %Creset%s%Cblue\ [%cn]” –decorate –date=short a = add ap = add -p c = commit –verbose ca = commit -a –verbose […]

Replace crlf git config core.autocrlf true source Remote branch delete git push origin –delete <branchName> source Apply new gitignore To untrack a single file that has already been added/initialized to your repository, i.e., […]

Download Nuget. Open command line, in folder of Nuget.exe, press Alt+Shif+F, select open command window here Commands to set nuget proxy nuget.exe config -set http_proxy=http://my.proxy.address:port nuget.exe config -set http_proxy.user=mydomain\myUserName nuget.exe […]