Created
          November 10, 2011 15:17 
        
      - 
      
 - 
        
Save retrofox/1355089 to your computer and use it in GitHub Desktop.  
    desktop dev configuration
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # prints git current branch into project folder | |
| function currentBranch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/' | |
| } | |
| PS1="\h:\w\[\033[0;36m\]\$(currentBranch) \[\033[0m\]\$ " | |
| # git alias | |
| alias gko='git checkout' | |
| alias gb='git branch' | |
| alias gba='git branch -a' | |
| alias ggc='git commit -v' | |
| alias ggd='git diff | mate' | |
| alias ggl='git pull' | |
| alias ggp='git push' | |
| alias gst='clear & git status' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment