Last active
January 23, 2024 11:45
-
-
Save Zebiano/19f262a88fcd9a9a4a90ed3a8597ec8b to your computer and use it in GitHub Desktop.
Aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- 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