Skip to content

Instantly share code, notes, and snippets.

@calrrox
Last active March 4, 2016 17:00
Show Gist options
  • Save calrrox/1ca57261bdb0c9bf30b7 to your computer and use it in GitHub Desktop.
Save calrrox/1ca57261bdb0c9bf30b7 to your computer and use it in GitHub Desktop.
Git configurations

Configuración post install:

  • Set user name and email

      git config --global user.name "NAME LASTNAME"
      git config --global user.email email@example.com
    
    
  • Set editor and merge tool

      git config --global core.editor "subl -w"
      git config --global merge.tool meld
      git config --global --add mergetool.prompt false
    
    
  • Set default credentials

      git config --global credential.helper cache  
      git config --global credential.username your_user_name  
    
    
  • Set alias commands

      git config --global alias.co checkout
      git config --global alias.br branch
      git config --global alias.ci commit
      git config --global alias.st status
      git config --global alias.last "log -1 HEAD"
      git config --global alias.unstage "reset HEAD --"
      
    
  • Color your prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment