Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

  1. # Aliases {{{
  2. # . ~/.secure
  3. alias gs="git status -u"
  4. alias gpl="git pull --rebase"
  5. alias grbc="git rebase --continue"
  6. alias gps="git push"
  7. alias vig="vi .gitignore"
  8. alias ga="git add -A * && gs"
  9. alias gai="git add .gitignore"
  10. alias gd="git diff -w"
  11. alias gdc="git diff --cached"
  12. alias gstore="git config credential.helper store"
  13. gcm(){ git commit -m "$1" ; }
  14. alias gc="git commit"
  15. alias gl="git log"
  16. alias gsl="git shortlog"
  17. alias gst="git stash"
  18. alias gstp="git stash pop"
  19. alias gclear="git stash clear"
  20. alias egc="vim -c \"set syn=gitcommit\" -c \"set tw=72\" commit-msg.txt"
  21. # Aliases }}}
  22. # Functions {{{
  23. gcho() { git checkout $1 ; }
  24. gcln() { git clone $1 ; }
  25. gremotes() {
  26. git remote set-url --add --push origin $1
  27. git remote set-url --add --push origin $2
  28. }
  29. gmrgr() {
  30. # 1 = remote name, 2 = remote path
  31. git remote add $1 $2
  32. git fetch $1
  33. # whichever branch you want to merge
  34. git merge --allow-unrelated-histories $1/master
  35. git remote remove $1
  36. }
  37. gunc() { git update-index --assume-unchanged $1 ; }
  38. # Functions }}}