Skip to content

Instantly share code, notes, and snippets.

@Tagliatti
Last active July 5, 2024 21:12
Show Gist options
  • Save Tagliatti/e70b69fac408947235e7c601e41e89c5 to your computer and use it in GitHub Desktop.
Save Tagliatti/e70b69fac408947235e7c601e41e89c5 to your computer and use it in GitHub Desktop.
.bash_aliases
# git
alias g="git"
alias gs="git status"
#alias gacp="git add. && git commit -m '.' && git push origin $(git branch | grep \* | cut -d ' ' -f2)"
#alias gp="git push origin $(git branch | grep \* | cut -d ' ' -f2)"
alias ga="git add ."
alias gac="git add . && git commit -m"
alias gc="git commit -m"
alias gca="git commit --amend"
alias gcam="git commit --amend --no-edit"
alias gm="git merge"
alias gck="git checkout"
alias gckd="git checkout develop"
alias gckm="git checkout main"
alias gpod="git pull origin develop"
alias gpom="git pull origin main"
alias gbd="git branch -D"
alias gr="git rebase -X theirs -i "
# artisan
alias a="php artisan"
alias am="php artisan migrate"
alias ams="php artisan migrate --seed"
alias at="php artisan tinker"
alias amc="php artisan make:controller"
alias ammi="php artisan make:migration"
alias ammo="php artisan make:model"
# composer
alias c="composer"
alias ci="composer install"
alias cu="composer update"
alias cr="composer run"
alias ct="composer run test"
alias cda="composer dump-autoload"
#docker-compose
alias dc="docker-compose"
alias dcu="docker-compose up -d"
alias dcl="docker-compose logs"
alias dcd="docker-compose down"
alias dcs="docker-compose stop"
alias dcps="docker-compose ps"
alias dcr="docker-compose restart"
#docker
alias d="docker"
alias kctx="kubectx"
alias ktail="kuketail"
alias cat="bat"
alias lzd="lazydocker"
alias lzg="lazygit"
alias p="python3"
# alias awsecr="$(aws ecr get-login --no-include-email)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment