Skip to content

Instantly share code, notes, and snippets.

@rabajaj0509
Last active October 13, 2020 07:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rabajaj0509/5e22cb7fb290f23373ce54ee056b33db to your computer and use it in GitHub Desktop.
Save rabajaj0509/5e22cb7fb290f23373ce54ee056b33db to your computer and use it in GitHub Desktop.
List of my shortcuts for everyday commands!
# User specific aliases and functions
# Git Aliases
alias ga='git add'
alias gb='git branch'
alias gcb='git checkout -b'
alias gco='git checkout'
alias gpf='git push -f origin'
alias gp='git push origin'
alias gc='git commit -m'
alias gca='git commit --amend'
alias gf='git fetch'
alias gd='git diff'
alias gdc='git diff --cached'
alias gs='git status'
alias gl='git log'
alias gr='git rebase -i'
# vagrant Aliases
alias vup='vagrant up'
alias vdown='vagrant halt'
alias vdestroy='vagrant destroy'
alias vssh='vagrant ssh'
alias vstatus='vagrant status'
#node Aliases
alias n='node'
# SSH related
alias pkey='cat ~/.ssh/id_rsa.pub'
alias mf='sshfs vagrant@centos7-katello-devel.localhost.example.com:/home/vagrant/ /home/rabajaj/github/mount/foreman/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment