Guest User

Untitled

a guest
May 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. # Remove Defaults
  2. rename-item alias:\gc gk -force
  3. rename-item alias:\gcm gkm -force
  4. rename-item alias:\gl gll -force
  5. rename-item alias:\gsn gsnn -force
  6. rename-item alias:\gm gmm -force
  7.  
  8. # Git
  9. function git-status { git status }
  10. Set-Alias -Name gst -Value git-status
  11.  
  12. function git-addall { git add -A }
  13. Set-Alias -Name gaa -Value git-addall
  14.  
  15. function git-branch { git branch $args }
  16. Set-Alias -Name gb -Value git-branch
  17.  
  18. function git-diff { git diff $args }
  19. Set-Alias -Name gd -Value git-diff
  20.  
  21. function git-diff-cached { git diff --cached }
  22. Set-Alias -Name gdc -Value git-diff-cached
  23.  
  24. function git-diff-master { git diff master }
  25. Set-Alias -Name gdm -Value git-diff-master
  26.  
  27. function git-diff-dev { git diff dev }
  28. Set-Alias -Name gdd -Value git-diff-dev
  29.  
  30. function git-commit-all { git commit -a }
  31. Set-Alias -Name gca -Value git-commit-all
  32.  
  33. function git-commit-m { git commit -m $args }
  34. Set-Alias -Name gcm -Value git-commit-m
  35.  
  36. function git-checkout { git checkout $args }
  37. Set-Alias -Name gco -Value git-checkout
  38.  
  39. function git-log { git log }
  40. Set-Alias -Name gl -Value git-log
  41.  
  42. function git-fetch { git fetch }
  43. Set-Alias -Name gf -Value git-fetch
  44.  
  45. function git-rebase-continue { git rebase --continue }
  46. Set-Alias -Name grc -Value git-rebase-continue
  47.  
  48. # Misc
  49. function back-dir { cd .. }
  50. Set-Alias -Name .. -Value back-dir
Add Comment
Please, Sign In to add comment