Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. source /usr/local/etc/bash_completion.d/git-prompt.sh
  2. export GIT_PS1_SHOWDIRTYSTATE=1
  3. export GIT_PS1_SHOWUPSTREAM=1
  4.  
  5. source /usr/local/etc/bash_completion.d/git-completion.bash
  6.  
  7. alias gst='git status'
  8. alias ga='git add'
  9. alias gc='git commit'
  10. alias gull='git pull --rebase'
  11. alias gush='git push'
  12. alias getch='git fetch -p'
  13. alias gb='git branch --color'
  14. __git_complete gb _git_branch
  15. alias gco='git checkout'
  16. __git_complete gco _git_checkout
  17. alias gd='git diff'
  18. alias gr='git rebase'
  19. __git_complete gr _git_rebase
  20.  
  21. alias gignore='git update-index --assume-unchanged'
  22. alias gunignore='git update-index --no-assume-unchanged'
  23. alias gignored='git ls-files -v | grep "^[[:lower:]]"'
  24.  
  25. function gcor(){
  26. branch=$1
  27. gco -b $branch --track origin/$branch
  28. }
  29.  
  30. export PS1='\[\033[01;34m\]\w \$\[\033[00m\] \[\033[00;32m\]$(__git_ps1 "%s ")\[\033[00m\]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement