Created
December 2, 2023 15:48
-
-
Save mehmt948/d09dd7576bafe192b2a5bfebbe0964ad to your computer and use it in GitHub Desktop.
basic useful bash aliases for developers
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
alias gs="git status"; # git status. example usage: gs | |
alias gc="git checkout"; # checkout a branch. example usage: gc sample-branch | |
alias gcb="git checkout -b"; # creates a new branch. example usage: gcb sample-branch | |
alias gpso="git push origin"; # push branch to origin remote. example usage: gpso sample-branch | |
alias gplo="git pull origin"; # pull branch from origin remote. example usage: gplo sample-branch | |
alias gcplo="git checkout $1 && git pull origin $1"; # checkout and pull branch from origin remote. example usage: gcplo sample-branch | |
alias gam="git add . && git commit -m"; # add all files and commit them all. example usage: gam "initial commit" | |
# run go project with hot reload. requires nodemon. example usage: nodemongo cmd/main.go | |
alias nodemongo="nodemon --exec go run $1 --signal SIGTERM" | |
alias dcu="docker-compose up"; | |
alias dcb="docker-compose build"; | |
alias k="kubectl"; # for short kubectl. example usage: k get pods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment