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
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop

Sublime Theme

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

Chocolatey configuration

setx ChocolateyInstall D:\ChocolateyInstall /m
@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
set path="%path%;C:\Program Files\Sublime Text 3;
setx path "%path%" /m

Chocolatey install packages

  • 7zip
  • adobereader
  • markdownpad2
  • fiddler4
  • git
  • nodejs.install
  • notepad2
  • python
  • scriptcs
  • SublimeText3
  • SublimeText3.PackageControl
  • conemu
  • mssqlservermanagementstudio2014express
  • mssqlserver2014express

Chocolatey install command

choco install mssqlservermanagementstudio2014express mssqlserver2014express 7zip fiddler4 git.install nodejs.install notepad2 scriptcs SublimeText3 SublimeText3.PackageControl

Git Config

git config --global user.name "Alberto Monteiro"
git config --global user.email [email protected]
git config --global core.editor "subl -n -w"

[user]
    name = Alberto Monteiro
    email = [email protected]
[core]
    preloadindex = true
    fscache = true
    autocrlf = true
    editor = subl -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"    
[gc]
    auto = 256
[push]
    default = matching

https://gitcredentialstore.codeplex.com/

Git Alias

[alias]
	st = status
	pr = pull
	recommit = commit -a --amend --no-edit
	upStg = !git checkout aprovado && git merge develop && git checkout staging && git merge develop && git checkout develop
	atualizatudo = !git fetch --prune && git checkout develop && git pull && git checkout aprovado && git pull && git checkout staging && git pull && git checkout master && git pull && git checkout develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment