Created
July 29, 2021 18:21
-
-
Save OpeOnikute/0f359be9b019819a3cd1c989df6ec0fe to your computer and use it in GitHub Desktop.
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 command shortcuts | |
alias gcam="git commit -am" | |
alias dcu="docker-compose up" | |
alias dcd="docker-compose down" | |
alias dcl="docker-compose logs -f" | |
alias dc="docker container" | |
alias gpo="git push origin" | |
alias gcm="git checkout master" | |
function merge_into_dev() { | |
branch=$(git symbolic-ref --short -q HEAD) | |
git checkout dev && git pull origin dev && git merge $branch | |
git push origin dev | |
} | |
function checkout_master() { | |
git checkout master | |
git pull origin master | |
} | |
function pull_master () { | |
git pull origin master | |
} | |
function get_branch() { | |
git branch | grep "*" | cut -d" " -f2 | |
} | |
# AWS commands | |
function run_ssm() { | |
REGION=$2 | |
aws ssm start-session --target $1 --region=$REGION | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment