Last active
November 21, 2023 05:50
-
-
Save muath-ye/3550887c17d26e69779577b9523d62c3 to your computer and use it in GitHub Desktop.
Put it here C:\Users\YourName\
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
# Git | |
alias gi="git init" | |
alias ga="git add" | |
alias gaa="git add ." | |
alias gc="git commit -m" | |
alias gp="git push" | |
alias gs="git status" | |
alias gl="git log" | |
alias gigaa="git init && git add ." | |
alias gigaagc="git init && git add . && git commit -m" | |
alias gigaagch="git init && git add . && git commit -m \"hot commit\"" | |
alias gaagc="git add . && git commit -m" | |
alias gaagch="git add . && git commit -m \"hot commit\"" | |
alias gaagchgp="git add . && git commit -m \"hot commit\" && git push" | |
alias gpo="git pull origin" | |
alias gpom="git pull origin main" | |
alias nah = "!f(){ git reset --hard; git clean -df; if [ -d ".git/rebase-apply" ] || [ -d ".git/rebase-merge" ]; then git rebase --abort; fi; }; f" | |
# Laravel Aliases | |
alias art='php artisan' | |
alias artisan="php artisan" | |
alias migrate="php artisan migrate" | |
alias serve="php artisan serve" | |
alias dump="php artisan dump" | |
alias t="phpunit" | |
alias tinker="php artisan tinker" | |
# Composer Aliases | |
alias cdump='composer dumpautoload' | |
alias ci='composer install' | |
alias cu='composer update' | |
alias cr='composer require' | |
alias cs='composer search' | |
alias copycomposer="php -r 'copy(\"https://getcomposer.org/installer\", \"composer-setup.php\");'" | |
alias getcomposer="php composer-setup.php --filename=composer" | |
alias downloadcomposer="php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\" && php -r \"if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;\" && php composer-setup.php && php -r \"unlink('composer-setup.php');\"" | |
# Custom Aliases for Projects | |
alias tip='cd D:/Obeikan/Academia/TipToNawras/TipToNawras && php74 -S localhost:2027' | |
alias acdev='cd d:/Obeikan/Academia/academia-v2 && yarn dev' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alias git-log='git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C (dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all'