Skip to content

Instantly share code, notes, and snippets.

@hanneshapke
Last active June 12, 2018 20:37
Show Gist options
  • Save hanneshapke/ed3ba14802c0d488aa8955e13f016f45 to your computer and use it in GitHub Desktop.
Save hanneshapke/ed3ba14802c0d488aa8955e13f016f45 to your computer and use it in GitHub Desktop.
dev setup
export CURRENT_DEV=kreuzberg
alias latest_dev='cd ~/development/$CURRENT_DEV'
# ssh tunnel
alias ssd='~/bin/ssh_host_color.sh ubuntu@remote -p 823 -L 6006:gpu:6006'
# add additional paths to the PYTHONPATH
export PYTHONPATH=$PYTHONPATH:~/development/additional_package
# git shortcuts
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gp='git push '
alias gc='git commit'
alias gcm='git commit -m'
alias gd='git diff'
alias gco='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
alias glp='git log --graph --decorate --pretty=oneline --abbrev-commit'
alias got='git '
alias get='git '
alias gt='git '
function create_new_git_branch {
git checkout -b "$1" && git push -u origin "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment