Skip to content

Instantly share code, notes, and snippets.

@Zebiano
Last active January 23, 2024 11:45
Show Gist options
  • Save Zebiano/19f262a88fcd9a9a4a90ed3a8597ec8b to your computer and use it in GitHub Desktop.
Save Zebiano/19f262a88fcd9a9a4a90ed3a8597ec8b to your computer and use it in GitHub Desktop.
Aliases
# --- Custom aliases --- #
# General
alias c='clear' # Clear
alias ts='date +%s' # TimeStamp
# SSH
alias sp='eval `ssh-agent`; ssh-add ~/.ssh/id_rsa' # Save Password
# Git
alias gc='git commit' # Git Commit
alias gf='git fetch' # Git Fetch
alias gp='git pull --rebase --autostash' # Git Pull
alias gca='git add . && git commit -a' # Git Commit All
alias gcm='git commit --amend' # Git Commit aMend
alias gcam='git add . && git commit -a --amend' # Git Commit All aMend
alias guc='git reset HEAD~1' # Git Undo Commit
alias ud='C_CB=$(git rev-parse --abbrev-ref HEAD) && git checkout develop && gp && git checkout "$C_CB" && unset C_CB' # Update Develop
alias um='C_CB=$(git rev-parse --abbrev-ref HEAD) && git checkout master && gp && git checkout "$C_CB" && unset C_CB' # Update Master
alias ua='ud && um' # Update All
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment