Skip to content

Instantly share code, notes, and snippets.

@isacmoura
Forked from AlbertoMonteiro/.gitconfig
Created June 1, 2020 17:35
Show Gist options
  • Select an option

  • Save isacmoura/caf16f79e3e9ad81c10123f17fb2542b to your computer and use it in GitHub Desktop.

Select an option

Save isacmoura/caf16f79e3e9ad81c10123f17fb2542b to your computer and use it in GitHub Desktop.
Set Environment

Sublime Theme

https://github.com/mrmartineau/SetiUI-Icons-Sublime

Chocolatey configuration

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
choco feature enable -n allowGlobalConfirmation

Chocolatey install command

choco install 7zip fiddler4 git.install nodejs.install notepad2 nuget.commandline SublimeText3 SublimeText3.PackageControl awscli awssdk-tools dotnet3.5 mssqlservermanagementstudio2014express mssqlserver2014express

Git Config

[user]
    name = Alberto Monteiro
    email = [email protected]
[core]
    preloadindex = true
    fscache = true
    autocrlf = true
	editor = code -n -w
[alias]
    st = status
    pr = pull
    co = checkout
    up = pull --rebase --prune
    recommit = commit -a --amend --no-edit    
    ec = config --global -e
    up = !git pull --rebase --prune $@ && git submodule update --init --recursive
    cob = checkout -b
    cm = !git add -A && git commit -m
    save = !git add -A && git commit -m 'SAVEPOINT'
    wip = !git add -u && git commit -m "WIP" 
    undo = reset HEAD~1 --mixed
    wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
    bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
    bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f" 
    previouscommitfrom = "git log --pretty=%P -n 1"
[gc]
    auto = 256
[push]
    default = matching
[diff]
	tool = vsdiffmerge
[difftool]
	prompt = true
[difftool "vsdiffmerge"]
	cmd = \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" //t
	keepBackup = false
[merge]
	tool = vsdiffmerge
[mergetool]
	prompt = true
[mergetool "vsdiffmerge"]
	cmd = \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsdiffmerge.exe\" \"$REMOTE\" \"$LOCAL\" \"$BASE\" \"$MERGED\" //m
	keepBackup = false
	trustExitCode = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment