Skip to content

Instantly share code, notes, and snippets.

@mehmt948
Created December 2, 2023 15:48
Show Gist options
  • Save mehmt948/d09dd7576bafe192b2a5bfebbe0964ad to your computer and use it in GitHub Desktop.
Save mehmt948/d09dd7576bafe192b2a5bfebbe0964ad to your computer and use it in GitHub Desktop.
basic useful bash aliases for developers
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