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.

33 lines
890 B

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